VirtualBox

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


Ignore:
Timestamp:
Sep 22, 2008 3:12:44 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36940
Message:

HGCM: initialize flags before adding the message to the queue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/hgcm/HGCMThread.cpp

    r8155 r12651  
    406406        pMsg->m_pfnCallback = pfnCallback;
    407407
     408        if (fWait)
     409        {
     410            pMsg->m_fu32Flags |= HGCM_MSG_F_WAIT;
     411        }
     412
    408413        /* Insert the message to the queue tail. */
    409414        pMsg->m_pNext = NULL;
     
    424429
    425430        LogFlow(("HGCMThread::MsgPost: going to inform the thread %p about message, fWait = %d\n", this, fWait));
    426 
    427         if (fWait)
    428         {
    429             pMsg->m_fu32Flags |= HGCM_MSG_F_WAIT;
    430         }
    431431
    432432        /* Inform the worker thread that there is a message. */
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