Nikolay Sivov : user.exe: Fix MapDialogRect() to actually convert passed rectangle (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Dec 21 15:10:32 CST 2015


Module: wine
Branch: master
Commit: eee6332e95d2a39b79e4410ebdfc075250277d89
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=eee6332e95d2a39b79e4410ebdfc075250277d89

Author: Nikolay Sivov <nsivov at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;




More information about the wine-cvs mailing list