mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed a display bug in test 1.
svn path=/trunk/; revision=3813
This commit is contained in:
parent
64c768602f
commit
21ad71423a
1 changed files with 11 additions and 11 deletions
|
@ -128,17 +128,17 @@ void test1(void)
|
||||||
dprintf("\t\t\t\tStatus =%x\n",Status);
|
dprintf("\t\t\t\tStatus =%x\n",Status);
|
||||||
if (Status == STATUS_SUCCESS)
|
if (Status == STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
dprintf("\tValue:DO=%d, DL=%d, NL=%d, Name = "
|
dprintf("\tValue:DO=%d, DL=%d, NL=%d, Name = "
|
||||||
,KeyValueInformation[0].DataOffset
|
,KeyValueInformation[0].DataOffset
|
||||||
,KeyValueInformation[0].DataLength
|
,KeyValueInformation[0].DataLength
|
||||||
,KeyValueInformation[0].NameLength);
|
,KeyValueInformation[0].NameLength);
|
||||||
for (i=0;i<10 && i<KeyValueInformation[0].NameLength/2;i++)
|
for (i=0;i<10 && i<KeyValueInformation[0].NameLength/2;i++)
|
||||||
dprintf("%C",KeyValueInformation[0].Name[i]);
|
dprintf("%C",KeyValueInformation[0].Name[i]);
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue