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

Alexandre Julliard julliard at winehq.org
Tue Jun 24 06:44:47 CDT 2008


Module: wine
Branch: master
Commit: d324c42b4c87e286d67793e941a67172bbdde9c4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d324c42b4c87e286d67793e941a67172bbdde9c4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun 24 11:50:42 2008 +0200

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 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 7280150..07e0f50 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 );
 }
 
 /******************************************************************************




More information about the wine-cvs mailing list