CoInitialize(Ex) should return S_FALSE when COM is already initialized

for the current thread.
This commit is contained in:
Christian Costa 2005-01-12 19:58:09 +00:00 committed by Alexandre Julliard
parent d7b4d60cd7
commit a010e3b3fa
1 changed files with 2 additions and 0 deletions

View File

@ -543,6 +543,8 @@ HRESULT WINAPI CoInitializeEx(
COM_ApartmentRelease(apt);
return RPC_E_CHANGED_MODE;
}
else
hr = S_FALSE;
COM_CurrentInfo()->inits++;