VirtualBox

Changeset 69732 in vbox for trunk


Ignore:
Timestamp:
Nov 18, 2017 2:04:50 AM (7 years ago)
Author:
vboxsync
Message:

glue/initterm.cpp: Fixed assert to ignore ERROR_ACCESS_DENIED and moved hLeakIt assert into the ERROR_SUCCESS condition. Needed when launching 2nd VBoxSVC from non-elevated context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/initterm.cpp

    r69620 r69732  
    258258        HANDLE hLeakIt = CreateMutexW(NULL/*pSecAttr*/, FALSE, L"Global\\VirtualBoxComLazyRegistrationMutant");
    259259        DWORD  dwErr   = GetLastError();
    260         AssertMsg(dwErr == ERROR_SUCCESS || dwErr == ERROR_ALREADY_EXISTS, ("%u\n", dwErr));
     260        AssertMsg(dwErr == ERROR_SUCCESS || dwErr == ERROR_ALREADY_EXISTS || dwErr == ERROR_ACCESS_DENIED, ("%u\n", dwErr));
    261261        if (dwErr == ERROR_SUCCESS)
    262262        {
     
    290290                }
    291291            }
    292         }
    293         Assert(hLeakIt != NULL); NOREF(hLeakIt);
     292            Assert(hLeakIt != NULL); NOREF(hLeakIt);
     293        }
    294294    }
    295295# endif
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