rabage
驱动牛犊
驱动牛犊
  • 注册日期2005-02-25
  • 最后登录2005-04-14
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1013回复:0

自动生产代码的疑问

楼主#
更多 发布于:2005-03-16 09:43
driver studio的network driver wizard生产的USB网卡驱动
代码中有这样一段:
NTSTATUS EthUSBAdapter::CompletionTxRoutine(PIRP pIrp, EthUSBAdapter::IRP_CONTEXT* Context)
{
// TODO: Recycle the irp and the packet

if (0 /* send completed */) {
// . . .
SendComplete(Context->type.Packet, NDIS_STATUS_SUCCESS);
// . . .
}

// Free irp and context

m_TxIrpPool.Free(pIrp);
delete Context;

return STATUS_MORE_PROCESSING_REQUIRED;
}
这里面的if(0){}有什么用了?永远不会被执行阿
游客

返回顶部