VirtualBox

Changeset 67623 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 27, 2017 8:04:55 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116392
Message:

VBoxProxyStub.c: coding style

File:
1 edited

Legend:

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

    r67622 r67623  
    22892289
    22902290    hSCM = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
    2291 
    22922291    if (hSCM != NULL)
    22932292    {
     
    23282327
    23292328    if (   dirLen + moduleLen + 2 >= MAX_PATH + QUOTES_SPACE
    2330         || !RT_SUCCESS(RTUtf16Copy(szFilePath + 1, MAX_PATH + QUOTES_SPACE - 1, wszVBoxDir)) 
     2329        || !RT_SUCCESS(RTUtf16Copy(szFilePath + 1, MAX_PATH + QUOTES_SPACE - 1, wszVBoxDir))
    23312330        || !RT_SUCCESS(RTUtf16Copy(szFilePath + dirLen + 1, MAX_PATH + QUOTES_SPACE - dirLen - 1, wszServiceModule)))
    23322331    {
     
    23852384
    23862385    hSCM = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
    2387 
    23882386    if (hSCM == NULL)
    23892387    {
     
    23942392
    23952393    hService = OpenService(hSCM, wszServiceName, SERVICE_STOP | DELETE);
    2396 
    23972394    if (hService == NULL)
    23982395    {
     
    24082405    {
    24092406        DWORD dwError = GetLastError();
    2410         if (!((dwError == ERROR_SERVICE_NOT_ACTIVE) ||
    2411             (dwError == ERROR_SERVICE_CANNOT_ACCEPT_CTRL
    2412                 && status.dwCurrentState == SERVICE_STOP_PENDING)))
     2407        if (!(   dwError == ERROR_SERVICE_NOT_ACTIVE
     2408              || (   dwError == ERROR_SERVICE_CANNOT_ACCEPT_CTRL
     2409                  && status.dwCurrentState == SERVICE_STOP_PENDING)))
    24132410        {
    24142411            CloseServiceHandle(hSCM);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette