[PATCH v2] user32: WARN() when WINDOWINFO cbSize is incorrect.
Brendan Shanks
bshanks at codeweavers.com
Thu Sep 19 17:51:20 CDT 2019
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47783
Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>
---
v2: Fix warning when building for Win64
dlls/user32/win.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 3582262b7d..0523fc2479 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -3847,6 +3847,8 @@ BOOL WINAPI DECLSPEC_HOTPATCH GetWindowInfo( HWND hwnd, PWINDOWINFO pwi)
{
if (!pwi) return FALSE;
if (!WIN_GetRectangles( hwnd, COORDS_SCREEN, &pwi->rcWindow, &pwi->rcClient )) return FALSE;
+ if (sizeof(WINDOWINFO) != pwi->cbSize)
+ WARN("Incorrect cbSize %d\n", pwi->cbSize);
pwi->dwStyle = GetWindowLongW(hwnd, GWL_STYLE);
pwi->dwExStyle = GetWindowLongW(hwnd, GWL_EXSTYLE);
--
2.17.1
More information about the wine-devel
mailing list