src/osal.c
static int ntstatus2errcode(NTSTATUS status) {
  DWORD dummy;
  OVERLAPPED ov;
  memset(&ov, 0, sizeof(ov));
  ov.Internal = status;
  return GetOverlappedResult(NULL, &ov, &dummy, FALSE) ? MDBX_SUCCESS
                                                       : (int)GetLastError();
}
/* Map a result from an NTAPI call to WIN32 error code. */
Map a result from an NTAPI call to WIN32 error code.
Map a result from an NTAPI call to WIN32 error code .
static int ntstatus2errcode(NTSTATUS status) {
  DWORD dummy;
  OVERLAPPED ov;
  memset(&ov, 0, sizeof(ov));
  ov.Internal = status;
  return GetOverlappedResult(NULL, &ov, &dummy, FALSE) ? MDBX_SUCCESS
                                                       : (int)GetLastError();
}
static int ntstatus2errcode ( NTSTATUS status ) { DWORD dummy ; OVERLAPPED ov ; memset ( & ov , 0 , sizeof ( ov ) ) ; ov . Internal = status ; return GetOverlappedResult ( NULL , & ov , & dummy , FALSE ) ? MDBX_SUCCESS : ( int ) GetLastError ( ) ; }
Map a result from an NTAPI call to WIN32 error code.
Map a result from an NTAPI call to WIN32 error code .