mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user