mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 18:54:25 +00:00
The c++ bool is 1 byte, not 4. Thanks Thomas
svn path=/trunk/; revision=69650
This commit is contained in:
parent
6ed09fb64b
commit
44f11315a4
|
@ -786,7 +786,7 @@ CDeviceManager::MainWndProc(_In_ HWND hwnd,
|
||||||
// we set a timer to run in 500ms, which should leave enough time for all
|
// 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
|
// 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);
|
SetTimer(hwnd, REFRESH_TIMER, 500, NULL);
|
||||||
}
|
}
|
||||||
|
@ -807,7 +807,7 @@ CDeviceManager::MainWndProc(_In_ HWND hwnd,
|
||||||
KillTimer(hwnd, REFRESH_TIMER);
|
KillTimer(hwnd, REFRESH_TIMER);
|
||||||
|
|
||||||
// Allow more change notifications
|
// Allow more change notifications
|
||||||
InterlockedExchange((LONG *)&This->m_RefreshPending, false);
|
InterlockedExchange((LONG *)&This->m_RefreshPending, FALSE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ class CDeviceManager
|
||||||
HMENU m_hMenu;
|
HMENU m_hMenu;
|
||||||
HMENU m_hActionMenu;
|
HMENU m_hActionMenu;
|
||||||
int m_CmdShow;
|
int m_CmdShow;
|
||||||
bool m_RefreshPending;
|
BOOL m_RefreshPending;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CDeviceManager(void);
|
CDeviceManager(void);
|
||||||
|
|
Loading…
Reference in a new issue