VirtualBox

Changeset 69733 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Nov 18, 2017 2:05:33 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119129
Message:

VBoxProxyStub: Don't complain if we haven't got the necessary privileges to mess with SCM system services like VBoxSDS.

File:
1 edited

Legend:

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

    r69728 r69733  
    23672367            }
    23682368            else
    2369                 AssertMsgFailed(("Could not open service %ls: %u\n", pwszServiceName, GetLastError()));
     2369                AssertMsg(GetLastError() == ERROR_ACCESS_DENIED,
     2370                          ("Could not open service %ls: %u\n", pwszServiceName, GetLastError()));
    23702371        }
    23712372        else
     
    24072408                }
    24082409                else
    2409                     AssertMsgFailed(("Could not stop service %ls: %u (state=%u)\n", pwszServiceName, dwErr, Status.dwCurrentState));
     2410                    AssertMsg(dwErr == ERROR_ACCESS_DENIED,
     2411                              ("Could not stop service %ls: %u (state=%u)\n", pwszServiceName, dwErr, Status.dwCurrentState));
    24102412                CloseServiceHandle(hService);
    24112413            }
    24122414            else
    2413                 AssertMsgFailed(("Could not open service %ls: %u\n", pwszServiceName, GetLastError()));
     2415                AssertMsg(GetLastError() == ERROR_ACCESS_DENIED,
     2416                          ("Could not open service %ls: %u\n", pwszServiceName, GetLastError()));
    24142417            CloseServiceHandle(hSCM);
    24152418        }
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