shell32: Fix incorrect use of the ScreenToClient function.
diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c index 702a6c0..f022faf 100644 --- a/dlls/shell32/shlfileop.c +++ b/dlls/shell32/shlfileop.c
@@ -94,15 +94,13 @@ RECT r; if (bShow) { - POINT pt; int width; GetWindowRect(hButton, &r); + MapWindowPoints( 0, hDlg, (POINT *)&r, 2 ); width = r.right - r.left; - pt.x = r.left; - pt.y = r.top; - ScreenToClient(hDlg, &pt); - MoveWindow(hButton, *xPos - width, pt.y - yOffset, width, r.bottom - r.top, FALSE); + SetWindowPos(hButton, 0, *xPos - width, r.top - yOffset, 0, 0, + SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW ); *xPos -= width + 5; } else