64-bit windows buildfix

This commit is contained in:
Henrik Rydgard 2013-06-25 22:00:56 +02:00
parent 21e2b0e32f
commit 81c6e63fd6

View File

@ -51,8 +51,8 @@ CMemoryDlg::CMemoryDlg(HINSTANCE _hInstance, HWND _hParent, DebugInterface *_cpu
// subclass the edit box
HWND editWnd = GetDlgItem(m_hDlg,IDC_ADDRESS);
DefAddressEditProc = (WNDPROC)GetWindowLong(editWnd,GWL_WNDPROC);
SetWindowLong(editWnd,GWL_WNDPROC,(long)AddressEditProc);
DefAddressEditProc = (WNDPROC)GetWindowLongPtr(editWnd,GWLP_WNDPROC);
SetWindowLongPtr(editWnd,GWLP_WNDPROC,(LONG_PTR)AddressEditProc);
AddressEditParentHwnd = m_hDlg;
Size();