阅读:1482回复:4
一调用PtSendComplete中的函数就死机,请帮忙了!
各位大侠:多帮忙。。。
VOID PtSendComplete( IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_PACKET Packet, IN NDIS_STATUS Status ) { PADAPT pAdapt =(PADAPT)ProtocolBindingContext; PNDIS_PACKET Pkt; PRSVD Rsvd; PNDIS_BUFFER PacketBuffer; PVOID PacketBufferVA; UINT PacketBufferLength; pAdapt = pAdapt->pPrimaryAdapt; Rsvd =(PRSVD)(Packet->ProtocolReserved); Pkt = Rsvd->OriginalPkt; NdisUnchainBufferAtBack(Packet,&PacketBuffer); //我一调用 NdisUnchainBufferAtBack(Packet,&PacketBuffer);函数就死机??? NdisQueryBuffer(PacketBuffer, &PacketBufferVA, &PacketBufferLength); NdisFreeBuffer(PacketBuffer); NdisFreeMemory(PacketBufferVA, PacketBufferLength, 0); NdisFreePacket(Packet); NdisMSendComplete(pAdapt->MiniportHandle, Pkt, Status); } |
|
|
沙发#
发布于:2002-09-30 09:35
死之前说什么没有? :D :D :D
|
|
|
板凳#
发布于:2002-09-30 15:39
死之前说什么没有? :D :D :D 这是我…… 我最后一次……党费 |
|
地板#
发布于:2002-09-30 16:15
用softice看看packet是否完整!
先得到memory,释放,再放buffer,再放packet,试试! |
|
地下室#
发布于:2002-09-30 23:20
死之前说什么没有? :D :D :D 有没有分析MEMORY.DMP???或者STOP的信息是什么? :mad: :mad: :mad: |
|
|