[MSGINA] Fix the order of checking for a valid / visible window, spotted by 'leha-bot' CORE-12028

svn path=/trunk/; revision=72934
This commit is contained in:
Mark Jansen 2016-10-07 23:11:17 +00:00
parent 330db984fe
commit c9c3a517b2

View file

@ -104,7 +104,7 @@ public:
{
MSG msg;
while (!IsWindowVisible(m_hwnd) && IsWindow(m_hwnd))
while (IsWindow(m_hwnd) && !IsWindowVisible(m_hwnd))
{
while (::PeekMessage(&msg, m_hwnd, 0, 0, PM_REMOVE))
{