[PATCH 4/5] winefile: Initialize length before calling GetWindowPlacement().
Huw Davies
huw at codeweavers.com
Mon Oct 30 05:29:15 CDT 2017
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
programs/winefile/winefile.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 27079bbcf8..044a399a82 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -1923,6 +1923,7 @@ static void frame_get_clientspace(HWND hwnd, PRECT prect)
else {
WINDOWPLACEMENT wp;
+ wp.length = sizeof(wp);
GetWindowPlacement(hwnd, &wp);
prect->left = prect->top = 0;
--
2.12.0
More information about the wine-patches
mailing list