Changeset 2913


Ignore:
Timestamp:
Sep 14, 2016, 4:06:32 PM (9 years ago)
Author:
bird
Message:

report STATUS_DELETE_PENDING as ENOENT.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/main.c

    r2900 r2913  
    13811381
    13821382# ifndef ELECTRIC_HEAP /* Drop this because it prevents JIT debugging. */
    1383   SetUnhandledExceptionFilter(handle_runtime_exceptions);
     1383//  SetUnhandledExceptionFilter(handle_runtime_exceptions);
    13841384# endif /* !ELECTRIC_HEAP */
    13851385
  • trunk/src/lib/nt/nthlpcore.c

    r2862 r2913  
    6262BOOLEAN     (WINAPI *g_pfnRtlEqualString)(MY_ANSI_STRING const *, MY_ANSI_STRING const *, BOOLEAN);
    6363UCHAR       (WINAPI *g_pfnRtlUpperChar)(UCHAR uch);
     64ULONG       (WINAPI *g_pfnRtlNtStatusToDosError)(MY_NTSTATUS rcNt);
    6465
    6566
     
    8586    { (FARPROC *)&g_pfnRtlEqualString,                  "RtlEqualString" },
    8687    { (FARPROC *)&g_pfnRtlUpperChar,                    "RtlUpperChar" },
     88    { (FARPROC *)&g_pfnRtlNtStatusToDosError,           "RtlNtStatusToDosError" },
    8789};
    8890/** Set to 1 if we've successfully resolved the imports, otherwise 0. */
     
    156158        /* EPERM            =  1 */
    157159        case STATUS_CANNOT_DELETE:
    158         case STATUS_DELETE_PENDING:
    159160            return EPERM;
    160161        /* ENOENT           =  2 */
     
    173174        case STATUS_DFS_EXIT_PATH_FOUND:
    174175        case RPC_NT_OBJECT_NOT_FOUND:
     176        case STATUS_DELETE_PENDING:
    175177            return ENOENT;
    176178        /* ESRCH            =  3 */
     
    378380{
    379381    errno = birdErrnoFromNtStatus(rcNt);
     382#if 0
     383    {
     384        ULONG rcWin32;
     385        _doserrno = rcWin32 = g_pfnRtlNtStatusToDosError(rcNt);
     386        SetLastError(rcWin32);
     387    }
     388#endif
    380389    return -1;
    381390}
  • trunk/src/lib/nt/ntstuff.h

    r2900 r2913  
    508508                                                  BOOLEAN fCaseInsensitive);
    509509extern UCHAR       (WINAPI * g_pfnRtlUpperChar)(UCHAR uch);
     510extern ULONG       (WINAPI * g_pfnRtlNtStatusToDosError)(MY_NTSTATUS rcNt);
    510511
    511512
Note: See TracChangeset for help on using the changeset viewer.