The c++ bool is 1 byte, not 4. Thanks Thomas

svn path=/trunk/; revision=69650
This commit is contained in:
Ged Murphy 2015-10-22 17:37:51 +00:00
parent 6ed09fb64b
commit 44f11315a4
2 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

@ -17,7 +17,7 @@ class CDeviceManager
HMENU m_hMenu;
HMENU m_hActionMenu;
int m_CmdShow;
bool m_RefreshPending;
BOOL m_RefreshPending;
public:
CDeviceManager(void);