Alexandre Julliard : user32: Return some fake information for an inter-process GetWindowPlacement.

Alexandre Julliard julliard at winehq.org
Fri Dec 10 11:56:57 CST 2010


Module: wine
Branch: master
Commit: 1829fc51c1d93b46915a340e14303401862defd5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1829fc51c1d93b46915a340e14303401862defd5

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Dec  9 20:43:26 2010 +0100

user32: Return some fake information for an inter-process GetWindowPlacement.

---

 dlls/user32/winpos.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 716616f..6b623d2 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -1229,8 +1229,18 @@ BOOL WINAPI GetWindowPlacement( HWND hwnd, WINDOWPLACEMENT *wndpl )
     }
     if (pWnd == WND_OTHER_PROCESS)
     {
-        if (IsWindow( hwnd )) FIXME( "not supported on other process window %p\n", hwnd );
-        return FALSE;
+        if (!IsWindow( hwnd )) return FALSE;
+        FIXME( "not supported on other process window %p\n", hwnd );
+        /* provide some dummy information */
+        wndpl->length  = sizeof(*wndpl);
+        wndpl->showCmd = SW_SHOWNORMAL;
+        wndpl->flags = 0;
+        wndpl->ptMinPosition.x = -1;
+        wndpl->ptMinPosition.y = -1;
+        wndpl->ptMaxPosition.x = -1;
+        wndpl->ptMaxPosition.y = -1;
+        GetWindowRect( hwnd, &wndpl->rcNormalPosition );
+        return TRUE;
     }
 
     /* update the placement according to the current style */




More information about the wine-cvs mailing list