mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Zero memory for value info in RegQueryValueExW, otherwise we will return invalid values in case of error.
svn path=/trunk/; revision=7208
This commit is contained in:
parent
4373da8151
commit
8dec71c0b4
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: reg.c,v 1.35 2003/12/23 21:18:31 navaraf Exp $
|
||||
/* $Id: reg.c,v 1.36 2003/12/23 22:00:54 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -2123,7 +2123,7 @@ RegQueryValueExW (HKEY hKey,
|
|||
lpValueName);
|
||||
BufferSize = sizeof (KEY_VALUE_PARTIAL_INFORMATION) + *lpcbData;
|
||||
ValueInfo = RtlAllocateHeap (ProcessHeap,
|
||||
0,
|
||||
HEAP_ZERO_MEMORY,
|
||||
BufferSize);
|
||||
if (ValueInfo == NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue