summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-22 22:39:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-22 22:39:22 +0000
commit003989e0bfded22bc027a268fe986066a4dd43d6 (patch)
tree72b5b4f67629cc8eebe38a8a388ca35faef07587 /src
parentbaea5e8a4a56cb1d9cabd8f35554fd1c4eb24345 (diff)
and also no GWLP_USERDATA for resizer...
git-svn-id: http://svn.miranda-ng.org/main/trunk@13045 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/ui_utils.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp
index 6912a5158c..5765d533b3 100644
--- a/src/mir_core/src/ui_utils.cpp
+++ b/src/mir_core/src/ui_utils.cpp
@@ -226,15 +226,14 @@ INT_PTR CALLBACK CDlgBase::GlobalDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPA
wnd = arDialogs.find((CDlgBase*)&bullshit);
}
- if (wnd == NULL)
- return FALSE;
-
- return wnd->DlgProc(msg, wParam, lParam);
+ return (wnd == NULL) ? FALSE : wnd->DlgProc(msg, wParam, lParam);
}
int CDlgBase::GlobalDlgResizer(HWND hwnd, LPARAM, UTILRESIZECONTROL *urc)
{
- CDlgBase *wnd = (CDlgBase *)GetWindowLongPtr(hwnd, GWLP_USERDATA);
+ PVOID bullshit[2]; // vfptr + hwnd
+ bullshit[1] = hwnd;
+ CDlgBase *wnd = arDialogs.find((CDlgBase*)&bullshit);
return (wnd == NULL) ? 0 : wnd->Resizer(urc);
}