From 23cf74853467a31c76dfe98bf4d6087cef7f4904 Mon Sep 17 00:00:00 2001 From: martell Date: Sat, 11 Jan 2014 12:31:04 +0000 Subject: [PATCH] Added x64 support for Windows - CCExtensions --- extensions/proj.win32/Win32InputBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/proj.win32/Win32InputBox.cpp b/extensions/proj.win32/Win32InputBox.cpp index 220a932072..1412e1a198 100644 --- a/extensions/proj.win32/Win32InputBox.cpp +++ b/extensions/proj.win32/Win32InputBox.cpp @@ -280,14 +280,14 @@ void CWin32InputBox::InitDialog() // Message handler for about box. LRESULT CALLBACK CWin32InputBox::DlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { - CWin32InputBox *_this = (CWin32InputBox *) ::GetWindowLong(hDlg, GWL_USERDATA); + CWin32InputBox *_this = (CWin32InputBox *) ::GetWindowLongPtr(hDlg, GWLP_USERDATA); WIN32INPUTBOX_PARAM *param = _this ? _this->GetParam() : 0; switch (message) { case WM_INITDIALOG: { - ::SetWindowLong(hDlg, GWL_USERDATA, (LONG) lParam); + SetWindowLongPtr(hDlg, GWLP_USERDATA, (LONG_PTR) lParam); _this = (CWin32InputBox *) lParam; _this->_param->hDlg = hDlg;