mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Don't return data length if not requested
svn path=/trunk/; revision=11112
This commit is contained in:
parent
8ceb672cc0
commit
8e7f16e570
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: reg.c,v 1.57 2004/09/13 14:42:37 ekohl Exp $
|
||||
/* $Id: reg.c,v 1.58 2004/09/28 20:40:15 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -1444,7 +1444,10 @@ RegEnumValueW (HKEY hKey,
|
|||
*lpcbValueName = (DWORD)(ValueInfo->Basic.NameLength / sizeof(WCHAR));
|
||||
lpValueName[*lpcbValueName] = 0;
|
||||
}
|
||||
*lpcbData = (DWORD)ValueInfo->Full.DataLength;
|
||||
if (NULL != lpcbData)
|
||||
{
|
||||
*lpcbData = (DWORD)ValueInfo->Full.DataLength;
|
||||
}
|
||||
}
|
||||
|
||||
if (ErrorCode == ERROR_SUCCESS && lpType != NULL)
|
||||
|
|
Loading…
Reference in a new issue