1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00

fix GetWindowPlacement hook for child windows

This commit is contained in:
FunkyFr3sh 2024-12-16 01:56:02 +01:00
parent 1b0a839588
commit b38aeb30ae

View File

@ -797,7 +797,7 @@ BOOL WINAPI fake_GetWindowPlacement(HWND hWnd, WINDOWPLACEMENT* lpwndpl)
lpwndpl->rcNormalPosition.right = g_ddraw.width;
lpwndpl->rcNormalPosition.top = 0;
}
else
else if (!(real_GetWindowLongA(hWnd, GWL_STYLE) & WS_CHILD))
{
real_MapWindowPoints(HWND_DESKTOP, g_ddraw.hwnd, (LPPOINT)&lpwndpl->rcNormalPosition, 2);
}