Huw Davies : winefile: Initialize length before calling GetWindowPlacement ().
Alexandre Julliard
julliard at winehq.org
Tue Oct 31 13:16:02 CDT 2017
Module: wine
Branch: master
Commit: 2b8a38169bf719225012e66a2409ffba8966f546
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b8a38169bf719225012e66a2409ffba8966f546
Author: Huw Davies <huw at codeweavers.com>
Date: Mon Oct 30 10:29:15 2017 +0000
winefile: Initialize length before calling GetWindowPlacement().
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/winefile/winefile.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 27079bb..044a399 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;
More information about the wine-cvs
mailing list