Commit 6d5bfce3 authored by Alexandre Julliard's avatar Alexandre Julliard

comdlg32: Fix incorrect use of the ScreenToClient function.

parent d8950a7e
......@@ -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,
......
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