From a465d1429b1d7b9b66db083adea939b1e5271fc3 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Wed, 9 Jun 2021 17:26:37 +0200 Subject: [PATCH] fix --- 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 e4346f8..0ec9081 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 (!(GetWindowLong(hWnd, GWL_STYLE) & WS_CHILD)) + else if (!(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 (!(GetWindowLong(hWnd, GWL_STYLE) & WS_CHILD)) + else if (!(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD)) { POINT pt = { 0, 0 }; if (real_ClientToScreen(g_ddraw->hwnd, &pt))