CoInitialize(Ex) should return S_FALSE when COM is already initialized
for the current thread.
This commit is contained in:
parent
d7b4d60cd7
commit
a010e3b3fa
|
@ -543,6 +543,8 @@ HRESULT WINAPI CoInitializeEx(
|
||||||
COM_ApartmentRelease(apt);
|
COM_ApartmentRelease(apt);
|
||||||
return RPC_E_CHANGED_MODE;
|
return RPC_E_CHANGED_MODE;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
hr = S_FALSE;
|
||||||
|
|
||||||
COM_CurrentInfo()->inits++;
|
COM_CurrentInfo()->inits++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue