mirror of
https://github.com/reactos/reactos.git
synced 2024-09-03 17:19:20 +00:00
- Add some ASSERTs
svn path=/branches/aicom-network-fixes/; revision=35188
This commit is contained in:
parent
9e8d40a05b
commit
6c645ac736
|
@ -399,6 +399,8 @@ NTSTATUS TdiListen
|
|||
|
||||
AFD_DbgPrint(MAX_TRACE, ("Called\n"));
|
||||
|
||||
assert(ConnectionObject);
|
||||
|
||||
DeviceObject = IoGetRelatedDeviceObject(ConnectionObject);
|
||||
if (!DeviceObject) {
|
||||
AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n"));
|
||||
|
@ -525,6 +527,8 @@ NTSTATUS TdiQueryDeviceControl(
|
|||
KEVENT Event;
|
||||
PIRP Irp;
|
||||
|
||||
assert(FileObject);
|
||||
|
||||
DeviceObject = IoGetRelatedDeviceObject(FileObject);
|
||||
if (!DeviceObject) {
|
||||
AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n"));
|
||||
|
@ -574,6 +578,8 @@ NTSTATUS TdiQueryInformation(
|
|||
KEVENT Event;
|
||||
PIRP Irp;
|
||||
|
||||
assert(FileObject);
|
||||
|
||||
DeviceObject = IoGetRelatedDeviceObject(FileObject);
|
||||
if (!DeviceObject) {
|
||||
AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n"));
|
||||
|
@ -797,6 +803,8 @@ NTSTATUS TdiSend
|
|||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
PMDL Mdl;
|
||||
|
||||
assert(TransportObject);
|
||||
|
||||
DeviceObject = IoGetRelatedDeviceObject(TransportObject);
|
||||
if (!DeviceObject) {
|
||||
AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n"));
|
||||
|
@ -877,6 +885,8 @@ NTSTATUS TdiReceive(
|
|||
PDEVICE_OBJECT DeviceObject;
|
||||
PMDL Mdl;
|
||||
|
||||
assert(TransportObject);
|
||||
|
||||
DeviceObject = IoGetRelatedDeviceObject(TransportObject);
|
||||
if (!DeviceObject) {
|
||||
AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n"));
|
||||
|
@ -976,6 +986,8 @@ NTSTATUS TdiReceiveDatagram(
|
|||
NTSTATUS Status;
|
||||
PMDL Mdl;
|
||||
|
||||
assert(TransportObject);
|
||||
|
||||
DeviceObject = IoGetRelatedDeviceObject(TransportObject);
|
||||
if (!DeviceObject) {
|
||||
AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n"));
|
||||
|
@ -1065,6 +1077,8 @@ NTSTATUS TdiSendDatagram(
|
|||
NTSTATUS Status;
|
||||
PMDL Mdl;
|
||||
|
||||
assert(TransportObject);
|
||||
|
||||
AFD_DbgPrint(MID_TRACE,("Called(TransportObject %x)\n", TransportObject));
|
||||
|
||||
DeviceObject = IoGetRelatedDeviceObject(TransportObject);
|
||||
|
@ -1145,6 +1159,8 @@ NTSTATUS TdiDisconnect(
|
|||
|
||||
KeInitializeEvent(&Event, NotificationEvent, FALSE);
|
||||
|
||||
assert(TransportObject);
|
||||
|
||||
AFD_DbgPrint(MID_TRACE,("Called(TransportObject %x)\n", TransportObject));
|
||||
|
||||
DeviceObject = IoGetRelatedDeviceObject(TransportObject);
|
||||
|
|
Loading…
Reference in a new issue