winefile: Initialize length before calling GetWindowPlacement().

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-10-30 10:29:15 +00:00 committed by Alexandre Julliard
parent 05e40aa67d
commit 2b8a38169b
1 changed files with 1 additions and 0 deletions

View File

@ -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;