- 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:
Aleksey Bragin 2012-01-25 22:09:49 +00:00
parent 84c799fc9b
commit 94ea8b7bfa

View file

@ -492,7 +492,7 @@ IntVideoPortFindAdapter(
DeviceVideoBuffer,
REG_SZ,
DeviceExtension->RegistryPath.Buffer,
DeviceExtension->RegistryPath.Length);
DeviceExtension->RegistryPath.Length + sizeof(UNICODE_NULL));
RtlWriteRegistryValue(
RTL_REGISTRY_DEVICEMAP,