[KERNEL32]

- Initialization of a string before obtaining information

* Fixes 2 tests for kernel32_apitest GetComputerNameEx (all tests passed now)

svn path=/trunk/; revision=72511
This commit is contained in:
Dmitry Chapyshev
2016-08-30 17:36:01 +00:00
parent cc64f06a82
commit 779ba0d221
@@ -50,6 +50,9 @@ GetComputerNameFromRegistry(LPWSTR RegistryKey,
ULONG ReturnSize;
NTSTATUS Status;
if (lpBuffer != NULL && *nSize > 0)
lpBuffer[0] = 0;
RtlInitUnicodeString(&KeyName, RegistryKey);
InitializeObjectAttributes(&ObjectAttributes,
&KeyName,