diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-22 22:39:22 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-22 22:39:22 +0000 |
commit | 003989e0bfded22bc027a268fe986066a4dd43d6 (patch) | |
tree | 72b5b4f67629cc8eebe38a8a388ca35faef07587 /src | |
parent | baea5e8a4a56cb1d9cabd8f35554fd1c4eb24345 (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.cpp | 9 |
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);
}
|