I cant figure out the purpose of the
following snippet, in debug mode,
exception ?
…
#if DBG
devExt->DeviceToSendIrpsTo = NULL;
devExt = NULL;
#endif
//
// Return our device object
//
IoDeleteDevice(devExt->FunctionalDeviceObject);
…
I cant figure out the purpose of the
following snippet, in debug mode,
exception ?
…
#if DBG
devExt->DeviceToSendIrpsTo = NULL;
devExt = NULL;
#endif
//
// Return our device object
//
IoDeleteDevice(devExt->FunctionalDeviceObject);
…
Setting the devExt pointer to null and then using that null pointer in a
call to IoDeleteDevice is just broken. Obviously this code path has not
been tested in the driver checked build.
What was the question?
===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032
-----Original Message-----
From: Tomer Goldberg
To: “NT Developers Interest List”
Date: Mon, 9 Sep 2002 15:00:50 +0200
Subject: [ntdev] PCIWDM Question
>
> I cant figure out the purpose of the
> following snippet, in debug mode,
> exception ?
>
> …
> #if DBG
> devExt->DeviceToSendIrpsTo = NULL;
>
> devExt = NULL;
> #endif
> //
> // Return our device object
> //
> IoDeleteDevice(devExt->FunctionalDeviceObject);
> …
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to %%email.unsub%%
So just out of curiousity, whose braindead pciwdm driver was this?
===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032
-----Original Message-----
From: Tomer Goldberg
To: “NT Developers Interest List”
Date: Mon, 9 Sep 2002 15:00:50 +0200
Subject: [ntdev] PCIWDM Question
>
> I cant figure out the purpose of the
> following snippet, in debug mode,
> exception ?
>
> …
> #if DBG
> devExt->DeviceToSendIrpsTo = NULL;
>
> devExt = NULL;
> #endif
> //
> // Return our device object
> //
> IoDeleteDevice(devExt->FunctionalDeviceObject);
> …
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to %%email.unsub%%