[Wine-patches] user32: Improve a hack for Chronograph 3.0 Master (eterbug #7029).

Alexander Morozov amorozov на etersoft.ru
Чт Сен 8 17:02:17 MSD 2011


----------- следующая часть -----------
From 718d7b07720eda2d2831045f766a5acf40bfcd91 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Thu, 8 Sep 2011 16:42:34 +0400
Subject: [eterhack] user32: Improve a hack for Chronograph 3.0 Master
 (eterbug #7029).

---
 dlls/user32/winpos.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index e9e6415..bcb2ed8 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -34,6 +34,7 @@
 #include "controls.h"
 #include "user_private.h"
 #include "win.h"
+#include "wine/unicode.h"
 #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(win);
@@ -2079,7 +2080,14 @@ BOOL USER_SetWindowPos( WINDOWPOS * winpos )
     if (GetWindowLongW(winpos->hwnd, GWL_EXSTYLE) ==
         (WS_EX_MDICHILD | WS_EX_WINDOWEDGE) &&
         winpos->flags == (SWP_STATECHANGED | SWP_FRAMECHANGED |
-        SWP_NOACTIVATE | SWP_SHOWWINDOW | SWP_NOZORDER)) return FALSE;
+        SWP_NOACTIVATE | SWP_SHOWWINDOW | SWP_NOZORDER))
+    {
+        static const WCHAR list_form[] = {'L','i','s','t','F','o','r','m',0};
+        WCHAR buf[30];
+        if (GetClassNameW(winpos->hwnd, buf, sizeof(buf) / sizeof(WCHAR)) &&
+            strstrW(buf, list_form))
+            return FALSE;
+    }
 
     if (!SWP_DoWinPosChanging( winpos, &newWindowRect, &newClientRect )) return FALSE;
 
-- 
1.7.6.1



Подробная информация о списке рассылки Wine-patches