# HG changeset patch # User thfabba # Date 1302975250 -7200 # Node ID 47b68e40b93c2cda659ee66639df19c886649253 # Parent 34e5f115cf40729d6ef4a140a9f62f33d5eac2db [VIDEOPRT] - in IntCreateRegistryPath, check newly built registry key instead of existing one. Fixes graphics glitches - fix comparison logic for ControlSetNNN keys See issue #6123 for more details. diff -r 34e5f115cf40 -r 47b68e40b93c drivers/video/videoprt/videoprt.c --- drivers/video/videoprt/videoprt.c Sat Apr 16 19:29:21 2011 +0200 +++ drivers/video/videoprt/videoprt.c Sat Apr 16 19:34:10 2011 +0200 @@ -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);