From 44f11315a45b2193e92753bcdd3b9193ae69f847 Mon Sep 17 00:00:00 2001 From: Ged Murphy Date: Thu, 22 Oct 2015 17:37:51 +0000 Subject: [PATCH] The c++ bool is 1 byte, not 4. Thanks Thomas svn path=/trunk/; revision=69650 --- reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp | 4 ++-- reactos/dll/win32/devmgr/devmgmt/MainWindow.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp b/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp index 9c6750ac043..173ee6021ac 100644 --- a/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp +++ b/reactos/dll/win32/devmgr/devmgmt/MainWindow.cpp @@ -786,7 +786,7 @@ CDeviceManager::MainWndProc(_In_ HWND hwnd, // we set a timer to run in 500ms, which should leave enough time for all // the messages to come through. Wrap so we don't set multiple timers // - if (InterlockedCompareExchange((LONG *)&This->m_RefreshPending, true, false) == false) + if (InterlockedCompareExchange((LONG *)&This->m_RefreshPending, TRUE, FALSE) == FALSE) { SetTimer(hwnd, REFRESH_TIMER, 500, NULL); } @@ -807,7 +807,7 @@ CDeviceManager::MainWndProc(_In_ HWND hwnd, KillTimer(hwnd, REFRESH_TIMER); // Allow more change notifications - InterlockedExchange((LONG *)&This->m_RefreshPending, false); + InterlockedExchange((LONG *)&This->m_RefreshPending, FALSE); } break; } diff --git a/reactos/dll/win32/devmgr/devmgmt/MainWindow.h b/reactos/dll/win32/devmgr/devmgmt/MainWindow.h index d78c89aedf7..218fdd27f23 100644 --- a/reactos/dll/win32/devmgr/devmgmt/MainWindow.h +++ b/reactos/dll/win32/devmgr/devmgmt/MainWindow.h @@ -17,7 +17,7 @@ class CDeviceManager HMENU m_hMenu; HMENU m_hActionMenu; int m_CmdShow; - bool m_RefreshPending; + BOOL m_RefreshPending; public: CDeviceManager(void);