From d324c42b4c87e286d67793e941a67172bbdde9c4 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 24 Jun 2008 11:50:42 +0200 Subject: [PATCH] ole32: Don't consider RPC_S_UUID_LOCAL_ONLY an error in CoCreateGuid. Return a proper HRESULT for other errors. --- dlls/ole32/compobj.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 72801505694..07e0f50d0e9 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -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 ); } /******************************************************************************