Don't return data length if not requested

svn path=/trunk/; revision=11112
This commit is contained in:
Gé van Geldorp 2004-09-28 20:40:15 +00:00
parent 8ceb672cc0
commit 8e7f16e570

View file

@ -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,8 +1444,11 @@ RegEnumValueW (HKEY hKey,
*lpcbValueName = (DWORD)(ValueInfo->Basic.NameLength / sizeof(WCHAR));
lpValueName[*lpcbValueName] = 0;
}
if (NULL != lpcbData)
{
*lpcbData = (DWORD)ValueInfo->Full.DataLength;
}
}
if (ErrorCode == ERROR_SUCCESS && lpType != NULL)
{