summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2015-03-24 02:53:25 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2015-03-24 02:53:25 +0000
commit65aaaa950c793e9408a42d352db919d487ef2a2f (patch)
treecbbdbff8a721e5fd6efa78754ca75a05b625ac3c /plugins/SendScreenshotPlus
parentb2e1ec3eb79227ccea43e270d5ed1917cc0dcc53 (diff)
* multiple WINE bug fixes over IsDialogMessage(), bug rep: https://bugs.winehq.org/show_bug.cgi?id=38276
git-svn-id: http://svn.miranda-ng.org/main/trunk@12489 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus')
-rw-r--r--plugins/SendScreenshotPlus/src/UMainForm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SendScreenshotPlus/src/UMainForm.cpp b/plugins/SendScreenshotPlus/src/UMainForm.cpp
index 2533f6e27b..6214ba2763 100644
--- a/plugins/SendScreenshotPlus/src/UMainForm.cpp
+++ b/plugins/SendScreenshotPlus/src/UMainForm.cpp
@@ -1146,10 +1146,10 @@ void TfrmMain::FormClose() {
break;
}
// process dialog messages (of unknown dialogs)
-// HWND hwndDlgModeless=msg.hwnd;
+ HWND hwndDlgModeless = GetActiveWindow();
+// HWND hwndDlgModeless = msg.hwnd;
// for(HWND hTMP; (hTMP=GetAncestor(hwndDlgModeless,GA_PARENT)) && IsChild(hTMP,hwndDlgModeless); hwndDlgModeless=hTMP);
-// if(IsDialogMessage(hwndDlgModeless,&msg))
- if(IsDialogMessage(GetActiveWindow(),&msg))
+ if(hwndDlgModeless != NULL && IsDialogMessage(hwndDlgModeless, &msg)) /* Wine fix. */
continue;
// process messages
TranslateMessage(&msg);