mirror of
https://github.com/reactos/reactos.git
synced 2024-09-27 21:16: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:
parent
84c799fc9b
commit
94ea8b7bfa
|
@ -492,7 +492,7 @@ IntVideoPortFindAdapter(
|
|||
DeviceVideoBuffer,
|
||||
REG_SZ,
|
||||
DeviceExtension->RegistryPath.Buffer,
|
||||
DeviceExtension->RegistryPath.Length);
|
||||
DeviceExtension->RegistryPath.Length + sizeof(UNICODE_NULL));
|
||||
|
||||
RtlWriteRegistryValue(
|
||||
RTL_REGISTRY_DEVICEMAP,
|
||||
|
|
Loading…
Reference in a new issue