OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/win/atl_module.h" | |
6 | |
7 #include <atlbase.h> | |
8 #include <atlcom.h> | |
9 | |
10 namespace base { | |
11 namespace win { | |
12 | |
13 void CreateATLModuleIfNeeded() { | |
14 if (_pAtlModule == NULL) { | |
15 static CComModule module; | |
rvargas (doing something else)
2011/11/04 21:53:03
Shouldn't this should be CAtlModule? The construct
dmazzoni
2011/11/04 22:34:47
Is there any other good reason? Otherwise it just
rvargas (doing something else)
2011/11/04 22:52:14
It should feel like black magic already: what is _
dmazzoni
2011/11/04 23:01:30
Didn't realize it initialized it. Fixed.
| |
16 _pAtlModule = &module; | |
17 } | |
18 } | |
19 | |
20 } // namespace win | |
21 } // namespace base | |
OLD | NEW |