Compile fixed for Win64.

Please check if that also compiles on win32.
This commit is contained in:
Daniel Genrich
2009-04-19 19:31:32 +00:00
parent b36514a3be
commit 7144838606
2 changed files with 4 additions and 4 deletions

View File

@@ -208,7 +208,7 @@ static LRESULT CALLBACK screenSaverWindowProc(HWND hwnd, UINT uMsg, WPARAM wPara
BOOL CALLBACK findGhostWindowHWNDProc(HWND hwnd, LPARAM lParam) BOOL CALLBACK findGhostWindowHWNDProc(HWND hwnd, LPARAM lParam)
{ {
GHOST_IWindow *p = (GHOST_IWindow*) GetWindowLong(hwnd, GWL_USERDATA); GHOST_IWindow *p = (GHOST_IWindow*) GetWindowLongPtr(hwnd, GWLP_USERDATA);
BOOL ret = TRUE; BOOL ret = TRUE;
if (p == ghost_window_to_find) if (p == ghost_window_to_find)
{ {
@@ -292,8 +292,8 @@ bool GPG_Application::startScreenSaverFullScreen(
if (ghost_hwnd != NULL) if (ghost_hwnd != NULL)
{ {
GetCursorPos(&scr_save_mouse_pos); GetCursorPos(&scr_save_mouse_pos);
ghost_wnd_proc = (WNDPROC) GetWindowLong(ghost_hwnd, GWL_WNDPROC); ghost_wnd_proc = (WNDPROC) GetWindowLongPtr(ghost_hwnd, GWLP_WNDPROC);
SetWindowLong(ghost_hwnd,GWL_WNDPROC, (LONG) screenSaverWindowProc); SetWindowLongPtr(ghost_hwnd,GWLP_WNDPROC, (uintptr_t) screenSaverWindowProc);
} }
} }
return ret; return ret;