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; | |
16 _pAtlModule = &module; | |
17 | |
18 // Make sure COM is initialized for this thread; it's safe to call twice. | |
cpu_(ooo_6.6-7.5)
2011/11/04 17:25:34
not really. It is safe it is the same exact COM mo
| |
19 ::CoInitialize(NULL); | |
20 } | |
21 } | |
22 | |
23 } // namespace win | |
24 } // namespace base | |
OLD | NEW |