Module: wine Branch: master Commit: eee6332e95d2a39b79e4410ebdfc075250277d89 URL: http://source.winehq.org/git/wine.git/?a=commit;h=eee6332e95d2a39b79e4410ebd...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Dec 21 12:13:56 2015 +0300
user.exe: Fix MapDialogRect() to actually convert passed rectangle (Coverity).
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/user.exe16/dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user.exe16/dialog.c b/dlls/user.exe16/dialog.c index a194a58..fead42d 100644 --- a/dlls/user.exe16/dialog.c +++ b/dlls/user.exe16/dialog.c @@ -658,7 +658,7 @@ LRESULT WINAPI SendDlgItemMessage16( HWND16 hwnd, INT16 id, UINT16 msg, */ void WINAPI MapDialogRect16( HWND16 hwnd, LPRECT16 rect ) { - RECT rect32; + RECT rect32 = { rect->left, rect->top, rect->right, rect->bottom }; MapDialogRect( WIN_Handle32(hwnd), &rect32 ); rect->left = rect32.left; rect->right = rect32.right;