buffer overflow (& invalid registry path for device) bugfix: DataPtr != KeyInformatio...
authorRoyce Mitchell III <royce3@ev1.net>
Tue, 4 Jan 2005 06:24:17 +0000 (06:24 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Tue, 4 Jan 2005 06:24:17 +0000 (06:24 +0000)
svn path=/trunk/; revision=12781

reactos/drivers/net/ndis/ndis/protocol.c

index f83ff42..f0d61d0 100644 (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) );