From: Royce Mitchell III Date: Tue, 4 Jan 2005 06:24:17 +0000 (+0000) Subject: buffer overflow (& invalid registry path for device) bugfix: DataPtr != KeyInformatio... X-Git-Tag: backups/ext2@33480~146 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=e6258f2fa12e54b722a07974369704269e3f55d5 buffer overflow (& invalid registry path for device) bugfix: DataPtr != KeyInformation->Data on 2nd+ passes svn path=/trunk/; revision=12781 --- diff --git a/reactos/drivers/net/ndis/ndis/protocol.c b/reactos/drivers/net/ndis/ndis/protocol.c index f83ff42aea6..f0d61d0efd1 100644 --- a/reactos/drivers/net/ndis/ndis/protocol.c +++ b/reactos/drivers/net/ndis/ndis/protocol.c @@ -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) );