Huw Davies : winefile: Initialize length before calling GetWindowPlacement ().

Alexandre Julliard julliard at winehq.org
Tue Jan 2 15:01:28 CST 2018


Module: wine
Branch: stable
Commit: 1435d76506a07789fc049615c8770792a8e1e4f5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1435d76506a07789fc049615c8770792a8e1e4f5

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>
(cherry picked from commit 2b8a38169bf719225012e66a2409ffba8966f546)
Signed-off-by: Michael Stefaniuc <mstefani 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