comdlg32: Fix incorrect use of the ScreenToClient function.

This commit is contained in:
Alexandre Julliard 2010-10-05 14:04:15 +02:00
parent d8950a7ea6
commit 6d5bfce3ee
1 changed files with 1 additions and 2 deletions

View File

@ -3487,8 +3487,7 @@ static INT_PTR CALLBACK pagesetup_dlg_proc(HWND hDlg, UINT uMsg, WPARAM wParam,
SetPropW(hDlg, pagesetupdlg_prop, data);
SetPropW(hDrawWnd, pagesetupdlg_prop, data);
GetWindowRect(hDrawWnd, &data->rtDrawRect); /* Calculating rect in client coordinates where paper draws */
ScreenToClient(hDlg, (LPPOINT)&data->rtDrawRect);
ScreenToClient(hDlg, (LPPOINT)(&data->rtDrawRect.right));
MapWindowPoints( 0, hDlg, (LPPOINT)&data->rtDrawRect, 2 );
lpfnStaticWndProc = (WNDPROC)SetWindowLongPtrW(
hDrawWnd,
GWLP_WNDPROC,