fixed uninitialized variable warning

svn path=/trunk/; revision=14894
This commit is contained in:
Thomas Bluemel
2005-04-30 22:45:58 +00:00
parent 8f40adc5eb
commit 6e1ab38590
+3 -3
View File
@@ -1293,11 +1293,11 @@ RegEnumValueA (HKEY hKey,
}
else
{
if (lpData)
{
IsStringType = (ValueInfo->Full.Type == REG_SZ) ||
IsStringType = (ValueInfo->Full.Type == REG_SZ) ||
(ValueInfo->Full.Type == REG_MULTI_SZ) ||
(ValueInfo->Full.Type == REG_EXPAND_SZ);
if (lpData)
{
if (ValueInfo->Full.NameLength > NameLength ||
(!IsStringType && ValueInfo->Full.DataLength > *lpcbData) ||
ValueInfo->Full.DataLength > DataLength)