Module: wine Branch: master Commit: d324c42b4c87e286d67793e941a67172bbdde9c4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d324c42b4c87e286d67793e941...
Author: Alexandre Julliard julliard@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 ); }
/******************************************************************************