mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
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:
parent
60b5581e1c
commit
d324c42b4c
@ -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 );
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user