diff options
Diffstat (limited to 'chromium/ui/gfx/win/hwnd_util.h')
-rw-r--r-- | chromium/ui/gfx/win/hwnd_util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/ui/gfx/win/hwnd_util.h b/chromium/ui/gfx/win/hwnd_util.h index 5351d9467f0..18b386208a0 100644 --- a/chromium/ui/gfx/win/hwnd_util.h +++ b/chromium/ui/gfx/win/hwnd_util.h @@ -35,9 +35,9 @@ GFX_EXPORT void CenterAndSizeWindow(HWND parent, HWND window, const gfx::Size& pref); -// If |hwnd| is NULL logs various thing and CHECKs. Invoke right after calling -// CreateWindow. -GFX_EXPORT void CheckWindowCreated(HWND hwnd); +// If |hwnd| is nullptr logs various thing and CHECKs. |last_error| must contain +// the result of ::GetLastError(), called immediately after CreateWindow(). +GFX_EXPORT void CheckWindowCreated(HWND hwnd, DWORD last_error); // Returns the window you can use to parent a top level window. // Note that in some cases we create child windows not parented to its final |