Author: osiejka
Date: Sun Apr 17 10:20:22 2011
New Revision: 51375

URL: http://svn.reactos.org/svn/reactos?rev=51375&view=rev
Log:
[VIDEOPRT]
- Check for the correct, just created, registry key. Fix
a wrong comparison. Patch by Thomas Faber.
See issue #6123 for more details.

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=51375&r1=51374&r2=51375&view=diff
==============================================================================
--- trunk/reactos/drivers/video/videoprt/videoprt.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/videoprt/videoprt.c [iso-8859-1] Sun Apr 17 
10:20:22 2011
@@ -111,7 +111,7 @@
          AfterControlSet.Length -= sizeof(ControlSet) - sizeof(UNICODE_NULL);
          while (AfterControlSet.Length > 0 &&
                 *AfterControlSet.Buffer >= L'0' &&
-                *AfterControlSet.Buffer >= L'9')
+                *AfterControlSet.Buffer <= L'9')
          {
             AfterControlSet.Buffer++;
             AfterControlSet.Length -= sizeof(WCHAR);
@@ -145,7 +145,7 @@
          RtlAppendUnicodeToString(DeviceRegistryPath, Insert2);
 
          /* Check if registry key exists */
-         Valid = NT_SUCCESS(RtlCheckRegistryKey(RTL_REGISTRY_ABSOLUTE, 
DriverRegistryPath->Buffer));
+         Valid = NT_SUCCESS(RtlCheckRegistryKey(RTL_REGISTRY_ABSOLUTE, 
DeviceRegistryPath->Buffer));
 
          if (!Valid)
             ExFreePoolWithTag(DeviceRegistryPath->Buffer, TAG_VIDEO_PORT);


Reply via email to