mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[APPHELP] SdbGUIDToString(): use sizeof(WCHAR) instead of '2' (#7137)
This commit is contained in:
parent
b3094aa001
commit
4028de8c55
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ BOOL WINAPI SdbGUIDToString(CONST GUID *Guid, PWSTR GuidString, SIZE_T Length)
|
|||
UNICODE_STRING GuidString_u;
|
||||
if (NT_SUCCESS(RtlStringFromGUID(Guid, &GuidString_u)))
|
||||
{
|
||||
HRESULT hr = StringCchCopyNW(GuidString, Length, GuidString_u.Buffer, GuidString_u.Length / 2);
|
||||
HRESULT hr = StringCchCopyNW(GuidString, Length, GuidString_u.Buffer, GuidString_u.Length / sizeof(WCHAR));
|
||||
RtlFreeUnicodeString(&GuidString_u);
|
||||
return SUCCEEDED(hr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue