Report correct NDIS version to NdisMRegisterMiniportDriver

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2019-04-03 04:33:16 +02:00
parent b6056b95d3
commit 9436da8f7e

View File

@ -1481,8 +1481,8 @@ NTSTATUS DriverEntry(DRIVER_OBJECT *DriverObject, UNICODE_STRING *RegistryPath)
.Size = NDIS_SIZEOF_MINIPORT_DRIVER_CHARACTERISTICS_REVISION_2
},
.MajorNdisVersion = NDIS_MINIPORT_MAJOR_VERSION,
.MinorNdisVersion = NDIS_MINIPORT_MINOR_VERSION,
.MajorNdisVersion = (UCHAR)((NdisVersion & 0x00ff0000) >> 16),
.MinorNdisVersion = (UCHAR) (NdisVersion & 0x000000ff),
.MajorDriverVersion = WINTUN_VERSION_MAJ,
.MinorDriverVersion = WINTUN_VERSION_MIN,