VirtualBox

Ignore:
Timestamp:
Sep 20, 2007 12:07:28 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24671
Message:

Added a LogRel with additional driver open info. Return the VERR_VM_DRIVER_* stuff on Solaris, Darwin, FreeBSD and OS/2 as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/os2/SUPLib-os2.cpp

    r4882 r4925  
    9292                        NULL);
    9393    if (rc)
    94         return RTErrConvertFromOS2(rc);
     94    {
     95        int vrc;
     96        switch (rc)
     97        {
     98            case ERROR_FILE_NOT_FOUND:
     99            case ERROR_PATH_NOT_FOUND:  vrc = VERR_VM_DRIVER_NOT_INSTALLED; break;
     100            default:                    vrc = VERR_VM_DRIVER_OPEN_ERROR; break;
     101        }
     102        LogRel(("Failed to open \"%s\", rc=%d, vrc=%Vrc\n", DEVICE_NAME, rc, vrc));
     103        return vrc;
     104    }
    95105    g_hDevice = hDevice;
    96106
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