diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-10 15:27:28 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-10 15:27:28 +0000 |
commit | 09e7716a9514227d77047115b8631de68832da0d (patch) | |
tree | 065ff11c7e6ec69eaca41502ef0540cc7b1fa3bb /chrome | |
parent | 2c66de2f2cc0bff30f25d802e473fac2f8cdbace (diff) | |
download | chromium_src-09e7716a9514227d77047115b8631de68832da0d.zip chromium_src-09e7716a9514227d77047115b8631de68832da0d.tar.gz chromium_src-09e7716a9514227d77047115b8631de68832da0d.tar.bz2 |
Makes Chrome crash on start if we can't init the common controls. I'm
curious to see if this impacts the crashes we're getting when trying
to create a tooltip.
BUG=82193
TEST=none
R=ben@chromium.org
Review URL: http://codereview.chromium.org/7129046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/browser_main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index 1657716..16d0072 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -1035,7 +1035,8 @@ void InitializeToolkit(const MainFunctionParams& parameters) { INITCOMMONCONTROLSEX config; config.dwSize = sizeof(config); config.dwICC = ICC_WIN95_CLASSES; - InitCommonControlsEx(&config); + if (!InitCommonControlsEx(&config)) + LOG_GETLASTERROR(FATAL); #endif } |