diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-03-29 15:58:48 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-03-29 15:58:48 +0000 |
commit | d1ef727e95bac24bc97ebe5cb3c3f0ee42271f86 (patch) | |
tree | 712f6e5275e7fb54b1814c73c372fca660028632 /yapp/popwin.cpp | |
parent | ba2f55ddc45ea29cce65ad1bfcc178da9684141f (diff) |
x64 portability
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@439 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/popwin.cpp')
-rw-r--r-- | yapp/popwin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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:
|