From eab5dc43fa0c64f13db035dd3a9798d05af63cb3 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Wed, 9 Jun 2021 18:19:31 +0200 Subject: [PATCH] restore secondary check just to be sure --- src/winapi_hooks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index 0ec9081..d1173b0 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -260,7 +260,7 @@ BOOL WINAPI fake_SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int if ((uFlags & req_flags) != req_flags) return TRUE; } - else if (!(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD)) + else if (!IsChild(g_ddraw->hwnd, hWnd) && !(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD)) { POINT pt = { 0, 0 }; if (real_ClientToScreen(g_ddraw->hwnd, &pt)) @@ -282,7 +282,7 @@ BOOL WINAPI fake_MoveWindow(HWND hWnd, int X, int Y, int nWidth, int nHeight, BO { return TRUE; } - else if (!(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD)) + else if (!IsChild(g_ddraw->hwnd, hWnd) && !(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD)) { POINT pt = { 0, 0 }; if (real_ClientToScreen(g_ddraw->hwnd, &pt))