VirtualBox

Ignore:
Timestamp:
Apr 22, 2008 1:25:55 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30037
Message:

Added RTErrConvertFromDarwin() as a merge of the IO, Kern and COM versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/darwin/RTErrConvertFromDarwinIO.cpp

    r8245 r8288  
    1 /* $Id $ */
     1/* $Id:$ */
    22/** @file
    33 * IPRT - Convert Darwin IOKit returns codes to iprt status codes.
     
    4545    if (iNativeCode == kIOReturnSuccess)
    4646        return VINF_SUCCESS;
    47 
    48     switch (iNativeCode)
    49     {
    50         case kIOReturnNoDevice:     return VERR_IO_BAD_UNIT;
    51         case kIOReturnUnsupported:  return VERR_NOT_SUPPORTED;
    52     }
    53 
    54     /* unknown error. */
    55     AssertMsgFailed(("Unhandled error %#x\n", iNativeCode));
    56     return VERR_UNRESOLVED_ERROR;
     47    return RTErrConvertFromDarwin(iNativeCode);
    5748}
    5849
Note: See TracChangeset for help on using the changeset viewer.

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