diff options
author | abodenha@google.com <abodenha@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-20 17:05:00 +0000 |
---|---|---|
committer | abodenha@google.com <abodenha@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-20 17:05:00 +0000 |
commit | e587acfab994e5fe0fbf517151112879b0d259d6 (patch) | |
tree | d2cf201703becad8d0c1d139309e29e61c7ea153 /cloud_print | |
parent | 31b2e5ff5fa881d9aa1f1b2810d37502a84ab6a7 (diff) | |
download | chromium_src-e587acfab994e5fe0fbf517151112879b0d259d6.zip chromium_src-e587acfab994e5fe0fbf517151112879b0d259d6.tar.gz chromium_src-e587acfab994e5fe0fbf517151112879b0d259d6.tar.bz2 |
Fix DCHECK in GetProcessIntegrityLevel.
GetProcessIntegrityLevel DCHECKs if an AtExitManager doesn't exist. Create an AtExitManager during port monitor DLL registration/unregistration to avoid the DCHECK.
BUG=
TEST=
Review URL: http://codereview.chromium.org/6882060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82318 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print')
-rw-r--r-- | cloud_print/virtual_driver/win/port_monitor/port_monitor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc index 466c390..001eead 100644 --- a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc +++ b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc @@ -630,6 +630,7 @@ MONITORUI* WINAPI InitializePrintMonitorUI(void) { } HRESULT WINAPI DllRegisterServer(void) { + base::AtExitManager at_exit_manager; if (!cloud_print::CanRegister()) { return E_ACCESSDENIED; } @@ -646,6 +647,7 @@ HRESULT WINAPI DllRegisterServer(void) { } HRESULT WINAPI DllUnregisterServer(void) { + base::AtExitManager at_exit_manager; if (!cloud_print::CanRegister()) { return E_ACCESSDENIED; } |