Show the value, not the address in memory! (Thanks to Dmitry Philippov)
authorAleksey Bragin <aleksey@reactos.org>
Thu, 14 Sep 2006 08:27:08 +0000 (08:27 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Thu, 14 Sep 2006 08:27:08 +0000 (08:27 +0000)
svn path=/trunk/; revision=24106

reactos/regtests/winetests/ntdll/reg.c

index 3a77fb8..a2ee8d3 100755 (executable)
@@ -191,7 +191,7 @@ static NTSTATUS WINAPI QueryRoutine (IN PCWSTR ValueName, IN ULONG ValueType, IN
 
             case REG_BINARY:
                 trace("ValueType: REG_BINARY\n");
-                trace("ValueData: %d\n", (int)ValueData);
+                trace("ValueData: %d\n", *(unsigned int *)ValueData);
                 break;
 
             case REG_SZ:
@@ -211,7 +211,7 @@ static NTSTATUS WINAPI QueryRoutine (IN PCWSTR ValueName, IN ULONG ValueType, IN
 
             case REG_DWORD:
                 trace("ValueType: REG_DWORD\n");
-                trace("ValueData: %d\n", (int)ValueData);
+                trace("ValueData: %d\n", *(unsigned int *)ValueData);
                 break;
     };
     trace("ValueLength: %d\n", (int)ValueLength);