https://git.reactos.org/?p=reactos.git;a=commitdiff;h=57786d7d3ac9a86ad2974…
commit 57786d7d3ac9a86ad29740e8b0b9afeeda394238
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Tue Dec 18 13:29:03 2018 +0100
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Tue Dec 18 13:29:03 2018 +0100
[CYLFRAC] Fix a MSVC-x64 warning about hwnd (#1158)
"...\cylfrac.c(160): warning C4311: 'type cast': pointer truncation from
'HWND' to 'DWORD'".
---
modules/rosapps/applications/screensavers/cylfrac/cylfrac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/rosapps/applications/screensavers/cylfrac/cylfrac.c
b/modules/rosapps/applications/screensavers/cylfrac/cylfrac.c
index d72f6385f3..e981562ff6 100644
--- a/modules/rosapps/applications/screensavers/cylfrac/cylfrac.c
+++ b/modules/rosapps/applications/screensavers/cylfrac/cylfrac.c
@@ -157,7 +157,7 @@ LRESULT WINAPI ScreenSaverProc(HWND hwnd, UINT msg, WPARAM wParam,
LPARAM lParam
GetCursorPos(&initpoint);
InitGL(hwnd);
oldticks = GetTickCount();
- TimerID = timeSetEvent (timerdelay, 0, TimeProc, (DWORD)hwnd,
TIME_PERIODIC);
+ TimerID = timeSetEvent(timerdelay, 0, TimeProc, (DWORD_PTR)hwnd,
TIME_PERIODIC);
}
break;
case WM_PAINT: