From 003989e0bfded22bc027a268fe986066a4dd43d6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 22 Apr 2015 22:39:22 +0000 Subject: and also no GWLP_USERDATA for resizer... git-svn-id: http://svn.miranda-ng.org/main/trunk@13045 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/src/ui_utils.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3