[PATCH 4/5] winefile: Initialize length before calling GetWindowPlacement().

Huw Davies <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
Signed-off-by: Huw Davies <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.