VirtualBox

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


Ignore:
Timestamp:
Aug 13, 2010 1:29:25 PM (14 years ago)
Author:
vboxsync
Message:

EventQueue.cpp: check interrupted status before waiting for the next message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/EventQueue.cpp

    r31640 r31650  
    520520        MSG  Msg;
    521521        rc = VINF_SUCCESS;
    522         while (   (fRet = GetMessage(&Msg, NULL /*hWnd*/, WM_USER, WM_USER))
    523                && fRet != -1
    524                && rc != VERR_INTERRUPTED)
     522        while (   rc != VERR_INTERRUPTED
     523               && (fRet = GetMessage(&Msg, NULL /*hWnd*/, WM_USER, WM_USER))
     524               && fRet != -1)
    525525            rc = EventQueue::dispatchMessageOnWindows(&Msg, rc);
    526526        if (fRet == 0)
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