From ca2fb5f6668d44350fce546c1f2eaa7b9faa5a90 Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Sun, 26 Oct 2025 17:28:51 +0100 Subject: [PATCH] [NDIS] NdisRegisterProtocol(): Add a comment about NDIS51 (#8314) CORE-20300 - `NdisRegisterProtocol()`: Add a comment about `NDIS51`: the `NDIS50_PROTOCOL_CHARACTERISTICS` structure is common to both NDIS 5.0 and 5.1. This is in contrast to the `NDIS50/NDIS51_MINIPORT_CHARACTERISTICS` structures, see for example commit 3e169e3cb2 (r49961). - Remove obsolete SOURCES file. Addendum to commit d9e83ed22d (r40142). --- drivers/network/ndis/ndis/SOURCES | 15 --------------- drivers/network/ndis/ndis/protocol.c | 1 + 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 drivers/network/ndis/ndis/SOURCES diff --git a/drivers/network/ndis/ndis/SOURCES b/drivers/network/ndis/ndis/SOURCES deleted file mode 100644 index 59f44969c63..00000000000 --- a/drivers/network/ndis/ndis/SOURCES +++ /dev/null @@ -1,15 +0,0 @@ -TARGETNAME=ndis -TARGETPATH=obj -TARGETTYPE=EXPORT_DRIVER - -C_DEFINES=-DNDIS_WRAPPER=1 -DNDIS50=1 -DNDIS51=1 -DNDIS50_MINIPORT=1 -DNDIS51_MINIPORT=1 - -INCLUDES=..\include;..\..\..\..\include;..\..\..\..\include\reactos - -SOURCES= 40gone.c 50gone.c buffer.c cl.c cm.c co.c config.c control.c \ - efilter.c hardware.c io.c main.c memory.c miniport.c protocol.c \ - string.c stubs.c time.c - -MSC_WARNING_LEVEL=/W3 /WX - -DLLDEF=$(O)/ndis.def diff --git a/drivers/network/ndis/ndis/protocol.c b/drivers/network/ndis/ndis/protocol.c index 45681f53744..7cbb8ae045f 100644 --- a/drivers/network/ndis/ndis/protocol.c +++ b/drivers/network/ndis/ndis/protocol.c @@ -1156,6 +1156,7 @@ NdisRegisterProtocol( break; case 0x05: + /* Identical for both NDIS50 and NDIS51 */ MinSize = sizeof(NDIS50_PROTOCOL_CHARACTERISTICS); break;