Fixed a display bug in test 1.

svn path=/trunk/; revision=3813
This commit is contained in:
Eric Kohl 2002-12-01 19:16:26 +00:00
parent 64c768602f
commit 21ad71423a

View file

@ -137,8 +137,8 @@ void test1(void)
dprintf("\n"); dprintf("\n");
dprintf("\t\tType = %d\n",KeyValueInformation[0].Type); dprintf("\t\tType = %d\n",KeyValueInformation[0].Type);
if (KeyValueInformation[0].Type == REG_SZ) if (KeyValueInformation[0].Type == REG_SZ)
dprintf("\t\tValue = %S\n",KeyValueInformation[0].Name+1 dprintf("\t\tValue = %S\n",
+KeyValueInformation[0].NameLength/2); (PWCHAR)((PCHAR)&KeyValueInformation[0] + KeyValueInformation[0].DataOffset));
} }
dprintf("NtEnumerateValueKey : \n"); dprintf("NtEnumerateValueKey : \n");
Index=0; Index=0;