fixed uninitialized variable warning
Modified: trunk/reactos/lib/advapi32/reg/reg.c

Modified: trunk/reactos/lib/advapi32/reg/reg.c
--- trunk/reactos/lib/advapi32/reg/reg.c	2005-04-30 22:00:26 UTC (rev 14893)
+++ trunk/reactos/lib/advapi32/reg/reg.c	2005-04-30 22:45:58 UTC (rev 14894)
@@ -1293,11 +1293,11 @@
 	}
 	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)