Skip to content

Commit

Permalink
Small fix for debugger (GWL_WNDPROC isn't defined for 64bits, wouldn'…
Browse files Browse the repository at this point in the history
…t compile).
  • Loading branch information
arnastia committed Jun 25, 2013
1 parent 4fa30ce commit 2e48c89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Windows/Debugger/Debugger_MemoryDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2e48c89

Please sign in to comment.