Skip to content

Commit

Permalink
Use correct Ndis handle in call to NdisAllocateMdl
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Jun 5, 2021
1 parent 4e31fb9 commit f7df064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packetWin7/npf/npf/Write.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ NPF_BufferedWrite(
RtlCopyMemory(npBuff, UserBuff + Pos, pWinpcapHdr->caplen);

// Allocate an MDL to map the packet data
TmpMdl = NdisAllocateMdl(Open->pFiltMod, npBuff, pWinpcapHdr->caplen);
TmpMdl = NdisAllocateMdl(Open->pFiltMod->AdapterHandle, npBuff, pWinpcapHdr->caplen);

if (TmpMdl == NULL)
{
Expand Down

0 comments on commit f7df064

Please sign in to comment.