buffer overflow (& invalid registry path for device) bugfix: DataPtr != KeyInformation->Data on 2nd+ passes
Modified: trunk/reactos/drivers/net/ndis/ndis/protocol.c

Modified: trunk/reactos/drivers/net/ndis/ndis/protocol.c
--- trunk/reactos/drivers/net/ndis/ndis/protocol.c	2005-01-04 05:09:53 UTC (rev 12780)
+++ trunk/reactos/drivers/net/ndis/ndis/protocol.c	2005-01-04 06:24:17 UTC (rev 12781)
@@ -855,7 +855,7 @@
         }
 
       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) );