Changeset 59393 in vbox
- Timestamp:
- Jan 19, 2016 2:10:19 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Main/src-all/win/VBoxProxyStub.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/win/VBoxProxyStub.c
r59392 r59393 400 400 */ 401 401 rc = RegOpenKeyExA(hkeyRoot, pszSubRoot, 0 /*fOptions*/, pState->fSamBoth, &pState->hkeyClassesRootDst); 402 AssertMsgReturn(rc == ERROR_SUCCESS, ("%u\n", rc), pState->rc = rc); 403 rc = RegCreateKeyExW(pState->hkeyClassesRootDst, L"CLSID", 0 /*Reserved*/, NULL /*pszClass*/, 0 /*fOptions*/, 404 pState->fSamBoth, NULL /*pSecAttr*/, &pState->hkeyClsidRootDst, NULL /*pdwDisposition*/); 405 AssertMsgReturn(rc == ERROR_SUCCESS, ("%u\n", rc), pState->rc = rc); 406 407 return ERROR_SUCCESS; 402 if (rc == ERROR_SUCCESS) 403 { 404 rc = RegCreateKeyExW(pState->hkeyClassesRootDst, L"CLSID", 0 /*Reserved*/, NULL /*pszClass*/, 0 /*fOptions*/, 405 pState->fSamBoth, NULL /*pSecAttr*/, &pState->hkeyClsidRootDst, NULL /*pdwDisposition*/); 406 if (rc == ERROR_SUCCESS) 407 return ERROR_SUCCESS; 408 409 /* Ignore access denied errors as these may easily happen for 410 non-admin users. Just give up when this happens */ 411 AssertMsgReturn(rc == ERROR_ACCESS_DENIED, ("%u\n", rc), pState->rc = rc); 412 } 413 else 414 AssertMsgReturn(rc == ERROR_ACCESS_DENIED, ("%u\n", rc), pState->rc = rc); 415 return pState->rc = rc; 408 416 } 409 417
Note:
See TracChangeset
for help on using the changeset viewer.

