mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Fix GCC 4 build. Patch by Thomas Weidenmüller
svn path=/trunk/; revision=23647
This commit is contained in:
parent
acad050569
commit
b7578b2c4b
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ KeyboardActivityProc(
|
||||||
IN WPARAM wParam,
|
IN WPARAM wParam,
|
||||||
IN LPARAM lParam)
|
IN LPARAM lParam)
|
||||||
{
|
{
|
||||||
InterlockedExchange(&WLSession->LastActivity, ((PKBDLLHOOKSTRUCT)lParam)->time);
|
InterlockedExchange((LONG*)&WLSession->LastActivity, ((PKBDLLHOOKSTRUCT)lParam)->time);
|
||||||
return CallNextHookEx(NULL, nCode, wParam, lParam);
|
return CallNextHookEx(NULL, nCode, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ MouseActivityProc(
|
||||||
IN WPARAM wParam,
|
IN WPARAM wParam,
|
||||||
IN LPARAM lParam)
|
IN LPARAM lParam)
|
||||||
{
|
{
|
||||||
InterlockedExchange(&WLSession->LastActivity, ((PMSLLHOOKSTRUCT)lParam)->time);
|
InterlockedExchange((LONG*)&WLSession->LastActivity, ((PMSLLHOOKSTRUCT)lParam)->time);
|
||||||
return CallNextHookEx(NULL, nCode, wParam, lParam);
|
return CallNextHookEx(NULL, nCode, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ ScreenSaverThreadMain(
|
||||||
LoadScreenSaverParameters(&Timeout);
|
LoadScreenSaverParameters(&Timeout);
|
||||||
|
|
||||||
/* Check if we didn't had recent activity */
|
/* Check if we didn't had recent activity */
|
||||||
LastActivity = InterlockedCompareExchange(&Session->LastActivity, 0, 0);
|
LastActivity = InterlockedCompareExchange((LONG*)&Session->LastActivity, 0, 0);
|
||||||
if (LastActivity + Timeout > GetTickCount())
|
if (LastActivity + Timeout > GetTickCount())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue