From d1ef727e95bac24bc97ebe5cb3c3f0ee42271f86 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sun, 29 Mar 2009 15:58:48 +0000 Subject: x64 portability git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@439 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/popwin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yapp/popwin.cpp') diff --git a/yapp/popwin.cpp b/yapp/popwin.cpp index 9d1ba45..1b0aa3e 100644 --- a/yapp/popwin.cpp +++ b/yapp/popwin.cpp @@ -153,7 +153,7 @@ struct PopupWindowData { }; LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { - PopupWindowData *pwd = (PopupWindowData *)GetWindowLong(hwnd, GWL_USERDATA); + PopupWindowData *pwd = (PopupWindowData *)GetWindowLongPtr(hwnd, GWLP_USERDATA); PopupData *pd = 0; if(pwd) pd = pwd->pd; @@ -200,7 +200,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa GetLocalTime(&st); GetTimeFormat(LOCALE_USER_DEFAULT, TIME_NOSECONDS, &st, 0, pwd->tbuff, 128); - SetWindowLong(hwnd, GWL_USERDATA, (LONG)pwd); + SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)pwd); if(pd->timeout == -1 || (pd->timeout == 0 && options.default_timeout == -1)) { // make a really long timeout - say 7 days? ;) @@ -527,7 +527,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa if(pd && pd->pwzText) free(pd->pwzText); if(pd) free(pd); free(pwd); pwd = 0; pd = 0; - SetWindowLong(hwnd, GWL_USERDATA, 0); + SetWindowLongPtr(hwnd, GWLP_USERDATA, 0); break; case PUM_UPDATERGN: -- cgit v1.2.3