Author: mjansen
Date: Fri Oct 7 23:11:17 2016
New Revision: 72934
URL:
http://svn.reactos.org/svn/reactos?rev=72934&view=rev
Log:
[MSGINA] Fix the order of checking for a valid / visible window, spotted by
'leha-bot' CORE-12028
Modified:
trunk/reactos/dll/win32/msgina/dimmedwindow.cpp
Modified: trunk/reactos/dll/win32/msgina/dimmedwindow.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/dimmedwin…
==============================================================================
--- trunk/reactos/dll/win32/msgina/dimmedwindow.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/dimmedwindow.cpp [iso-8859-1] Fri Oct 7 23:11:17 2016
@@ -104,7 +104,7 @@
{
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))
{