We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86cfa4e commit b0215aaCopy full SHA for b0215aa
1 file changed
src/common/windows/com.cpp
@@ -17,7 +17,8 @@ static const char* doInitCom()
17
return "CoInitializeEx() failed";
18
19
// Set general COM security levels
20
- if (FAILED(CoInitializeSecurity(
+
21
+ HRESULT hRes = CoInitializeSecurity(
22
NULL,
23
-1, // COM authentication
24
NULL, // Authentication services
@@ -27,7 +28,9 @@ static const char* doInitCom()
27
28
NULL, // Authentication info
29
EOAC_NONE, // Additional capabilities
30
NULL // Reserved
- )))
31
+ );
32
33
+ if (FAILED(hRes) && hRes != RPC_E_TOO_LATE /* Has been set by a random dll */)
34
{
35
CoUninitialize();
36
return "CoInitializeSecurity() failed";
0 commit comments