Commit d324c42b authored by Alexandre Julliard's avatar Alexandre Julliard

ole32: Don't consider RPC_S_UUID_LOCAL_ONLY an error in CoCreateGuid.

Return a proper HRESULT for other errors.
parent 60b5581e
......@@ -1231,7 +1231,9 @@ HRESULT WINAPI CoDisconnectObject( LPUNKNOWN lpUnk, DWORD reserved )
*/
HRESULT WINAPI CoCreateGuid(GUID *pguid)
{
return UuidCreate(pguid);
DWORD status = UuidCreate(pguid);
if (status == RPC_S_OK || status == RPC_S_UUID_LOCAL_ONLY) return S_OK;
return HRESULT_FROM_WIN32( status );
}
/******************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment