Changeset 47533 in vbox for trunk/src/VBox/Runtime/nt
- Timestamp:
- Aug 3, 2013 10:31:16 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/nt/RTErrConvertFromNtStatus.cpp
r44528 r47533 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 41 41 switch (lNativeCode) 42 42 { 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; 50 56 } 51 57 52 58 /* unknown error. */ 53 AssertMsgFailed(("Unhandled error % ld\n", lNativeCode));59 AssertMsgFailed(("Unhandled error %#lx (%lu)\n", lNativeCode, lNativeCode)); 54 60 return VERR_UNRESOLVED_ERROR; 55 61 }
Note:
See TracChangeset
for help on using the changeset viewer.