- Timestamp:
 - Sep 14, 2016, 4:06:32 PM (9 years ago)
 - Location:
 - trunk/src
 - Files:
 - 
      
- 3 edited
 
- 
          
  kmk/main.c (modified) (1 diff)
 - 
          
  lib/nt/nthlpcore.c (modified) (5 diffs)
 - 
          
  lib/nt/ntstuff.h (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/kmk/main.c
r2900 r2913 1381 1381 1382 1382 # ifndef ELECTRIC_HEAP /* Drop this because it prevents JIT debugging. */ 1383 SetUnhandledExceptionFilter(handle_runtime_exceptions);1383 // SetUnhandledExceptionFilter(handle_runtime_exceptions); 1384 1384 # endif /* !ELECTRIC_HEAP */ 1385 1385  - 
      
trunk/src/lib/nt/nthlpcore.c
r2862 r2913 62 62 BOOLEAN (WINAPI *g_pfnRtlEqualString)(MY_ANSI_STRING const *, MY_ANSI_STRING const *, BOOLEAN); 63 63 UCHAR (WINAPI *g_pfnRtlUpperChar)(UCHAR uch); 64 ULONG (WINAPI *g_pfnRtlNtStatusToDosError)(MY_NTSTATUS rcNt); 64 65 65 66 … … 85 86 { (FARPROC *)&g_pfnRtlEqualString, "RtlEqualString" }, 86 87 { (FARPROC *)&g_pfnRtlUpperChar, "RtlUpperChar" }, 88 { (FARPROC *)&g_pfnRtlNtStatusToDosError, "RtlNtStatusToDosError" }, 87 89 }; 88 90 /** Set to 1 if we've successfully resolved the imports, otherwise 0. */ … … 156 158 /* EPERM = 1 */ 157 159 case STATUS_CANNOT_DELETE: 158 case STATUS_DELETE_PENDING:159 160 return EPERM; 160 161 /* ENOENT = 2 */ … … 173 174 case STATUS_DFS_EXIT_PATH_FOUND: 174 175 case RPC_NT_OBJECT_NOT_FOUND: 176 case STATUS_DELETE_PENDING: 175 177 return ENOENT; 176 178 /* ESRCH = 3 */ … … 378 380 { 379 381 errno = birdErrnoFromNtStatus(rcNt); 382 #if 0 383 { 384 ULONG rcWin32; 385 _doserrno = rcWin32 = g_pfnRtlNtStatusToDosError(rcNt); 386 SetLastError(rcWin32); 387 } 388 #endif 380 389 return -1; 381 390 }  - 
      
trunk/src/lib/nt/ntstuff.h
r2900 r2913 508 508 BOOLEAN fCaseInsensitive); 509 509 extern UCHAR (WINAPI * g_pfnRtlUpperChar)(UCHAR uch); 510 extern ULONG (WINAPI * g_pfnRtlNtStatusToDosError)(MY_NTSTATUS rcNt); 510 511 511 512  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  