mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- Better fix for the registry value bug introduced by Rafal. The string is guaranteed to be NULL terminated, however MaximumLength is off by one in some cases (more specifically in videoprt.c:131 two NULLs are being added by sizeof(Insert1) and sizeof(Insert2)).
See issue #6838 for more details. svn path=/trunk/; revision=55184
This commit is contained in:
@@ -492,7 +492,7 @@ IntVideoPortFindAdapter(
|
||||
DeviceVideoBuffer,
|
||||
REG_SZ,
|
||||
DeviceExtension->RegistryPath.Buffer,
|
||||
DeviceExtension->RegistryPath.Length);
|
||||
DeviceExtension->RegistryPath.Length + sizeof(UNICODE_NULL));
|
||||
|
||||
RtlWriteRegistryValue(
|
||||
RTL_REGISTRY_DEVICEMAP,
|
||||
|
||||
Reference in New Issue
Block a user