diff options
author | DRC <dcommander@users.sourceforge.net> | 2010-05-20 07:44:49 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2010-05-20 07:44:49 +0000 |
commit | c75dc44cea1877d8ec3783fb5201a2ba0f4a8d83 (patch) | |
tree | 8d5469ef4e7e7693b28c4b44cb4b57a211d0b152 /win/rfb_win32/MsgWindow.cxx | |
parent | c2d87605543e09cad3269ffbafed17759f137ed4 (diff) | |
download | tigervnc-c75dc44cea1877d8ec3783fb5201a2ba0f4a8d83.tar.gz tigervnc-c75dc44cea1877d8ec3783fb5201a2ba0f4a8d83.zip |
Fix 64-bit Windows issues
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4061 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/rfb_win32/MsgWindow.cxx')
-rw-r--r-- | win/rfb_win32/MsgWindow.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win/rfb_win32/MsgWindow.cxx b/win/rfb_win32/MsgWindow.cxx index 1f2299eb..4c50c2fd 100644 --- a/win/rfb_win32/MsgWindow.cxx +++ b/win/rfb_win32/MsgWindow.cxx @@ -1,4 +1,5 @@ /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. + * Copyright (C) 2010 D. R. Commander. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,10 +47,10 @@ LRESULT CALLBACK MsgWindowProc(HWND wnd, UINT msg, WPARAM wParam, LPARAM lParam) LRESULT result = 0; if (msg == WM_CREATE) - SetWindowLong(wnd, GWL_USERDATA, (long)((CREATESTRUCT*)lParam)->lpCreateParams); + SetWindowLongPtr(wnd, GWLP_USERDATA, (LONG_PTR)((CREATESTRUCT*)lParam)->lpCreateParams); else if (msg == WM_DESTROY) - SetWindowLong(wnd, GWL_USERDATA, 0); - MsgWindow* _this = (MsgWindow*) GetWindowLong(wnd, GWL_USERDATA); + SetWindowLongPtr(wnd, GWLP_USERDATA, 0); + MsgWindow* _this = (MsgWindow*) GetWindowLongPtr(wnd, GWLP_USERDATA); if (!_this) { vlog.info("null _this in %x, message %x", wnd, msg); return SafeDefWindowProc(wnd, msg, wParam, lParam); |