2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Update6 for MSVC10

Include stddef.h to avoid a redefinition problem with offsetof(s,m).
Remove wchar_t typedef. This is a native type is MSVC10 and should be appropriately defined with the inclusion of stddef.h in earlier versions.
This commit is contained in:
Skoader
2012-04-22 14:55:35 +10:00
parent 5a1b5bf055
commit 8bdf479bdc
2 changed files with 3 additions and 3 deletions

View File

@ -162,12 +162,12 @@ bool GuidIsNil (const Uuid & uuid) {
const wchar * GuidToString (const Uuid & uuid, wchar * dst, unsigned chars) {
wchar * src;
RPC_STATUS s;
s = UuidToStringW( (GUID *) &uuid, &src );
s = UuidToStringW( (GUID *) &uuid, (unsigned short **)&src );
if (RPC_S_OK == s)
StrCopy(dst, src, chars);
else
StrCopy(dst, L"", chars);
RpcStringFreeW(&src);
RpcStringFreeW((unsigned short **)&src);
return dst;
}