VirtualBox

Changeset 106524 in vbox


Ignore:
Timestamp:
Oct 20, 2024 2:34:15 AM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165356
Message:

VBoxAutostart: Missing break. jiraref:VBP-1171

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostart-win.cpp

    r106061 r106524  
    846846            break;
    847847        default:
    848             SvcStatus.dwControlsAccepted
    849                 = SERVICE_ACCEPT_STOP
    850                 | SERVICE_ACCEPT_SHUTDOWN;
    851             break;
    852     }
    853 
    854     static DWORD dwCheckPoint = 0;
     848            SvcStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_SHUTDOWN;
     849            break;
     850    }
     851
     852    static DWORD s_dwCheckPoint = 0;
    855853    switch (dwStatus)
    856854    {
    857855        case SERVICE_RUNNING:
    858856        case SERVICE_STOPPED:
    859             SvcStatus.dwCheckPoint       = 0;
     857            SvcStatus.dwCheckPoint = 0;
     858            break;
    860859        default:
    861             SvcStatus.dwCheckPoint       = ++dwCheckPoint;
     860            SvcStatus.dwCheckPoint = ++s_dwCheckPoint;
    862861            break;
    863862    }
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