mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:05:52 +00:00
[VIDEOPRT]
- Check for the correct, just created, registry key. Fix a wrong comparison. Patch by Thomas Faber. See issue #6123 for more details. svn path=/trunk/; revision=51375
This commit is contained in:
parent
7ce75cdf13
commit
9c44037679
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ IntCreateRegistryPath(
|
|||
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 @@ IntCreateRegistryPath(
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue