From b2e1ec3eb79227ccea43e270d5ed1917cc0dcc53 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Tue, 24 Mar 2015 00:55:09 +0000 Subject: * multiple WINE bug fixes over DeferWindowPos(), bug rep: https://bugs.winehq.org/show_bug.cgi?id=38275 git-svn-id: http://svn.miranda-ng.org/main/trunk@12488 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/dlg_anniversarylist.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'plugins/UserInfoEx/src') diff --git a/plugins/UserInfoEx/src/dlg_anniversarylist.cpp b/plugins/UserInfoEx/src/dlg_anniversarylist.cpp index f7632f0d6a..7a487842db 100644 --- a/plugins/UserInfoEx/src/dlg_anniversarylist.cpp +++ b/plugins/UserInfoEx/src/dlg_anniversarylist.cpp @@ -203,17 +203,19 @@ class CAnnivList { if (!(_wndPos->flags & SWP_NOSIZE)) { HWND hCtrl = GetDlgItem(_wndPos->hwnd, idCtrl); - RECT rcc = _CalcPos(hCtrl, anchors); - _hdWnds = DeferWindowPos( - _hdWnds, //HDWP hWinPosInfo - hCtrl, //HWND hWnd - HWND_NOTOPMOST, //hWndInsertAfter - rcc.left, //int x - rcc.top, //int y - rcc.right - rcc.left, - rcc.bottom - rcc.top, - SWP_NOZORDER //UINT uFlags - ); + if (NULL != hCtrl) { /* Wine fix. */ + RECT rcc = _CalcPos(hCtrl, anchors); + _hdWnds = DeferWindowPos( + _hdWnds, //HDWP hWinPosInfo + hCtrl, //HWND hWnd + HWND_NOTOPMOST, //hWndInsertAfter + rcc.left, //int x + rcc.top, //int y + rcc.right - rcc.left, + rcc.bottom - rcc.top, + SWP_NOZORDER //UINT uFlags + ); + } } } }; -- cgit v1.2.3