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

Return a proper HRESULT for other errors.
This commit is contained in:
Alexandre Julliard 2008-06-24 11:50:42 +02:00
parent 60b5581e1c
commit d324c42b4c

View File

@ -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 );
}
/******************************************************************************