VirtualBox

Changeset 107538 in vbox for trunk/src/VBox/Main/src-global


Ignore:
Timestamp:
Jan 8, 2025 4:24:13 PM (6 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166606
Message:

src/VBox/Main/src-global/win/VBoxSDS.cpp: Fixed warnings found by Parfait (uninitialized attributes). Initialized thread ID and only post WM_QUIT if a thread ID actually has been assigned [build fix]. jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-global/win/VBoxSDS.cpp

    r107537 r107538  
    152152        m_Status.dwWaitHint                = 3000;
    153153
    154         m_dwThreadID                       = -1;
     154        m_dwThreadID                       = 0;
    155155
    156156        s_pInstance = this;
     
    288288    {
    289289        setServiceStatus(SERVICE_STOP_PENDING);
    290         if (m_dwThreadID != -1)
     290        if (m_dwThreadID)
    291291            ::PostThreadMessage(m_dwThreadID, WM_QUIT, 0, 0);
    292292        LogFunc(("Windows Service stopped\n"));
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