VirtualBox

Changeset 80870 in vbox for trunk


Ignore:
Timestamp:
Sep 17, 2019 4:47:07 PM (5 years ago)
Author:
vboxsync
Message:

VBoxProxyStub: avoid more assertions if a non-admin tries updating the registry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/win/VBoxProxyStub.c

    r76553 r80870  
    571571            rc = RegOpenKeyExW(pState->hkeyClassesRootDst, L"Interface", 0 /*fOptions*/, pState->fSamBoth,
    572572                               &pState->hkeyClsidRootDst);
     573        if (rc == ERROR_ACCESS_DENIED)
     574        {
     575            pState->hkeyInterfaceRootDst = NULL;
     576            return pState->rc = rc;
     577        }
    573578        AssertLogRelMsgReturnStmt(rc == ERROR_SUCCESS, ("%u\n", rc), pState->hkeyInterfaceRootDst = NULL,  pState->rc = rc);
    574579    }
     
    10721077            return ERROR_SUCCESS;
    10731078    }
     1079    if (rc == ERROR_ACCESS_DENIED)
     1080        return pState->rc = rc;
    10741081    AssertLogRelMsgReturn(rc == ERROR_SUCCESS, ("%u\n", rc), pState->rc = rc);
    10751082
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