buffer overflow (& invalid registry path for device) bugfix: DataPtr != KeyInformation->Data on 2nd+ passes

svn path=/trunk/; revision=12781
This commit is contained in:
Royce Mitchell III
2005-01-04 06:24:17 +00:00
parent d2cca7e010
commit e6258f2fa1
+1 -1
View File
@@ -855,7 +855,7 @@ NdisRegisterProtocol(
}
wcscpy(RegistryPathStr, SERVICES_KEY);
wcscat(RegistryPathStr, (((WCHAR *)(KeyInformation->Data)) +8 ));
wcscat(RegistryPathStr, DataPtr + 8 );
wcscat(RegistryPathStr, PARAMETERS_KEY);
wcsncat(RegistryPathStr, ProtocolCharacteristics->Name.Buffer, ProtocolCharacteristics->Name.Length / sizeof(WCHAR) );