VirtualBox

Changeset 51921 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jul 8, 2014 9:35:47 AM (10 years ago)
Author:
vboxsync
Message:

Decode a couple of typical \Devices\VBoxDrvStub failure statuses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp

    r51907 r51921  
    14271427            rc = SUP_NT_STATUS_TO_VBOX(rcNt);
    14281428        else
     1429        {
     1430            const char *pszDefine;
     1431            switch (rcNt)
     1432            {
     1433                case STATUS_NO_SUCH_DEVICE:     pszDefine = " STATUS_NO_SUCH_DEVICE"; break;
     1434                case STATUS_ACCESS_DENIED:      pszDefine = " STATUS_ACCESS_DENIED"; break;
     1435                case STATUS_TRUST_FAILURE:      pszDefine = " STATUS_TRUST_FAILURE"; break;
     1436                default:                        pszDefine = ""; break;
     1437            }
    14291438            supR3HardenedFatalMsg("supR3HardenedWinReSpawn", kSupInitOp_Driver, VERR_OPEN_FAILED,
    1430                                   "NtCreateFile(%ls) failed: %#x\n", s_wszName, rcNt);
     1439                                  "NtCreateFile(%ls) failed: %#x%s\n", s_wszName, rcNt, pszDefine);
     1440        }
    14311441        supR3HardenedFatalMsg("supR3HardenedWinReSpawn", kSupInitOp_Driver, rc,
    14321442                              "NtCreateFile(%ls) failed: %Rrc (rcNt=%#x)\n", s_wszName, rc, rcNt);
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