|
|
@ -45,8 +45,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com |
|
|
|
*
|
|
|
|
*
|
|
|
|
***/ |
|
|
|
***/ |
|
|
|
|
|
|
|
|
|
|
|
#include "../../Pch.h" |
|
|
|
#include "../pnUtils.h" |
|
|
|
#pragma hdrstop |
|
|
|
#include <rpc.h> |
|
|
|
|
|
|
|
#include <rpcdce.h> |
|
|
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
#if 0 |
|
|
|
|
|
|
|
|
|
|
@ -162,12 +163,12 @@ bool GuidIsNil (const Uuid & uuid) { |
|
|
|
const wchar_t * GuidToString (const Uuid & uuid, wchar_t * dst, unsigned chars) { |
|
|
|
const wchar_t * GuidToString (const Uuid & uuid, wchar_t * dst, unsigned chars) { |
|
|
|
wchar_t * src; |
|
|
|
wchar_t * src; |
|
|
|
RPC_STATUS s; |
|
|
|
RPC_STATUS s; |
|
|
|
s = UuidToStringW( (GUID *) &uuid, (RPC_WSTR*)&src ); |
|
|
|
s = UuidToStringW( (GUID *) &uuid, (unsigned short**)&src ); |
|
|
|
if (RPC_S_OK == s) |
|
|
|
if (RPC_S_OK == s) |
|
|
|
StrCopy(dst, src, chars); |
|
|
|
StrCopy(dst, src, chars); |
|
|
|
else |
|
|
|
else |
|
|
|
StrCopy(dst, L"", chars); |
|
|
|
StrCopy(dst, L"", chars); |
|
|
|
RpcStringFreeW( (RPC_WSTR *)&src ); |
|
|
|
RpcStringFreeW( (unsigned short**)&src ); |
|
|
|
return dst; |
|
|
|
return dst; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|