[ros-diffs] [fireball] 26105: - "Fix" RtlQueryRegistryValues() usage (inspired by 26072) - Typo fix - DPRINT added for showing RegistryPath

fireball at svn.reactos.org fireball at svn.reactos.org
Thu Mar 15 11:37:59 CET 2007


Author: fireball
Date: Thu Mar 15 13:37:58 2007
New Revision: 26105

URL: http://svn.reactos.org/svn/reactos?rev=26105&view=rev
Log:
- "Fix" RtlQueryRegistryValues() usage (inspired by 26072)
- Typo fix
- DPRINT added for showing RegistryPath

Modified:
    trunk/reactos/drivers/video/videoprt/videoprt.c

Modified: trunk/reactos/drivers/video/videoprt/videoprt.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/videoprt.c?rev=26105&r1=26104&r2=26105&view=diff
==============================================================================
--- trunk/reactos/drivers/video/videoprt/videoprt.c (original)
+++ trunk/reactos/drivers/video/videoprt/videoprt.c Thu Mar 15 13:37:58 2007
@@ -654,6 +654,7 @@
          }
 
          RtlCopyUnicodeString(&DriverExtension->RegistryPath, RegistryPath);
+         DPRINT("RegistryPath: %wZ\n", &DriverExtension->RegistryPath);
       }
       else
       {
@@ -662,7 +663,7 @@
    }
 
    /*
-    * Copy the correct miniport initializtation data to the device extension.
+    * Copy the correct miniport initialization data to the device extension.
     */
 
    RtlCopyMemory(
@@ -825,7 +826,7 @@
    IN PMINIPORT_GET_REGISTRY_ROUTINE GetRegistryRoutine,
    IN PVOID HwContext)
 {
-   RTL_QUERY_REGISTRY_TABLE QueryTable[2];
+   RTL_QUERY_REGISTRY_TABLE QueryTable[2] = {{0}};
    QUERY_REGISTRY_CALLBACK_CONTEXT Context;
    PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
 
@@ -840,13 +841,6 @@
    QueryTable[0].QueryRoutine = QueryRegistryCallback;
    QueryTable[0].Flags = RTL_QUERY_REGISTRY_REQUIRED;
    QueryTable[0].Name = ParameterName;
-   QueryTable[0].EntryContext = NULL;
-   QueryTable[0].DefaultType = REG_NONE;
-   QueryTable[0].DefaultData = NULL;
-   QueryTable[0].DefaultLength = 0;
-
-   QueryTable[1].QueryRoutine = NULL;
-   QueryTable[1].Name = NULL;
 
    if (!NT_SUCCESS(RtlQueryRegistryValues(
       RTL_REGISTRY_ABSOLUTE,




More information about the Ros-diffs mailing list