From 2e48c897800098fb028ff5cc42d62fa231db2e41 Mon Sep 17 00:00:00 2001 From: arnastia Date: Tue, 25 Jun 2013 13:53:00 +0100 Subject: [PATCH] Small fix for debugger (GWL_WNDPROC isn't defined for 64bits, wouldn't compile). --- Windows/Debugger/Debugger_MemoryDlg.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Windows/Debugger/Debugger_MemoryDlg.cpp b/Windows/Debugger/Debugger_MemoryDlg.cpp index 63dbc1470e..564cc9f519 100644 --- a/Windows/Debugger/Debugger_MemoryDlg.cpp +++ b/Windows/Debugger/Debugger_MemoryDlg.cpp @@ -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();