From 47e6d4bf84444eb6cb4d4509231a8c9ee878a584 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 21 Aug 2015 14:00:12 -0400 Subject: [PATCH] Windows: cefclient: Fix incorrect RootWindowWin::SetBounds implementation --- tests/cefclient/browser/root_window_win.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/cefclient/browser/root_window_win.cc b/tests/cefclient/browser/root_window_win.cc index a4cd94b2e..6009c02c3 100644 --- a/tests/cefclient/browser/root_window_win.cc +++ b/tests/cefclient/browser/root_window_win.cc @@ -204,8 +204,11 @@ void RootWindowWin::Hide() { void RootWindowWin::SetBounds(int x, int y, size_t width, size_t height) { REQUIRE_MAIN_THREAD(); - if (hwnd_) - SetWindowPos(hwnd_, NULL, 0, 0, 0, 0, SWP_NOZORDER); + if (hwnd_) { + SetWindowPos(hwnd_, NULL, + x, y, static_cast(width), static_cast(height), + SWP_NOZORDER); + } } void RootWindowWin::Close(bool force) {