VirtualBox

Changeset 47533 in vbox for trunk/src/VBox/Runtime/nt


Ignore:
Timestamp:
Aug 3, 2013 10:31:16 PM (11 years ago)
Author:
vboxsync
Message:

Rewrote fs-win.cpp into a pure native NT version, this fixes the symbolic-link-in-path-not-followed issues that caused by having to guess the volume root in order to make the win32 (wrapper) API happy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/nt/RTErrConvertFromNtStatus.cpp

    r44528 r47533  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4141    switch (lNativeCode)
    4242    {
    43         case STATUS_SUCCESS:
    44             return VINF_SUCCESS;
    45         case STATUS_ALERTED:
    46         case STATUS_USER_APC:
    47             return VERR_INTERRUPTED;
    48         case STATUS_OBJECT_NAME_NOT_FOUND:
    49             return VERR_FILE_NOT_FOUND;
     43        case STATUS_SUCCESS:                return VINF_SUCCESS;
     44
     45        case STATUS_ALERTED:                return VERR_INTERRUPTED;
     46        case STATUS_USER_APC:               return VERR_INTERRUPTED;
     47
     48        case STATUS_INVALID_HANDLE:         return VERR_INVALID_HANDLE;
     49        case STATUS_INVALID_PARAMETER:      return VERR_INVALID_PARAMETER;
     50        case STATUS_INVALID_DEVICE_REQUEST: return VERR_IO_BAD_COMMAND;
     51        case STATUS_ACCESS_DENIED:          return VERR_ACCESS_DENIED;
     52        case STATUS_OBJECT_NAME_INVALID:    return VERR_INVALID_NAME;
     53        case STATUS_OBJECT_NAME_NOT_FOUND:  return VERR_FILE_NOT_FOUND;
     54        case STATUS_OBJECT_PATH_INVALID:    return VERR_INVALID_NAME;
     55        case STATUS_OBJECT_PATH_NOT_FOUND:  return VERR_PATH_NOT_FOUND;
    5056    }
    5157
    5258    /* unknown error. */
    53     AssertMsgFailed(("Unhandled error %ld\n", lNativeCode));
     59    AssertMsgFailed(("Unhandled error %#lx (%lu)\n", lNativeCode, lNativeCode));
    5460    return VERR_UNRESOLVED_ERROR;
    5561}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette