Commit eee6332e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 69ec6f22
...@@ -658,7 +658,7 @@ LRESULT WINAPI SendDlgItemMessage16( HWND16 hwnd, INT16 id, UINT16 msg, ...@@ -658,7 +658,7 @@ LRESULT WINAPI SendDlgItemMessage16( HWND16 hwnd, INT16 id, UINT16 msg,
*/ */
void WINAPI MapDialogRect16( HWND16 hwnd, LPRECT16 rect ) void WINAPI MapDialogRect16( HWND16 hwnd, LPRECT16 rect )
{ {
RECT rect32; RECT rect32 = { rect->left, rect->top, rect->right, rect->bottom };
MapDialogRect( WIN_Handle32(hwnd), &rect32 ); MapDialogRect( WIN_Handle32(hwnd), &rect32 );
rect->left = rect32.left; rect->left = rect32.left;
rect->right = rect32.right; rect->right = rect32.right;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment