[PATCH] user.exe: Fix MapDialogRect() to actually convert passed rectangle (Coverity)

Nikolay Sivov nsivov at codeweavers.com
Mon Dec 21 03:13:56 CST 2015


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




More information about the wine-patches mailing list