Small fix for debugger (GWL_WNDPROC isn't defined for 64bits, wouldn't compile).

This commit is contained in:
arnastia committed 2013-06-25 13:53:00 +01:00
1 parent 4fa30ce6ec
commit 2e48c89780
1 file changed
+6
+6
View File
@@ -51,8 +51,14 @@ CMemoryDlg::CMemoryDlg(HINSTANCE _hInstance, HWND _hParent, DebugInterface *_cpu
// subclass the edit box
HWND editWnd = GetDlgItem(m_hDlg,IDC_ADDRESS);
// TODO: GWL_WNDPROC isn't defined for 64 bits windows, GWLP_WNDPROC is instead
#if defined( _WIN64 )
DefAddressEditProc = (WNDPROC)GetWindowLong(editWnd,GWLP_WNDPROC);
SetWindowLong(editWnd,GWLP_WNDPROC,(long)AddressEditProc);
#else
DefAddressEditProc = (WNDPROC)GetWindowLong(editWnd,GWL_WNDPROC);
SetWindowLong(editWnd,GWL_WNDPROC,(long)AddressEditProc);
#endif
AddressEditParentHwnd = m_hDlg;
Size();