[httpdisk/bus] Delete bus FDO on PnP removal
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sat, 8 Jan 2011 07:12:41 +0000 (02:12 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sat, 8 Jan 2011 07:12:41 +0000 (02:12 -0500)
commit4a497d9469a54cb634abe64ec53053978bb388cd
treef8c93a831c7400cf17f1185c160bc5182c930f21
parent9b49624ef54e9631d31ac78a8dfb2bec9d7c75d2
[httpdisk/bus] Delete bus FDO on PnP removal

If we delete the FDO before returning from handling an
IRP_MJ_PNP:IRP_MN_REMOVE_DEVICE IRP, then the driver's
unload routine will be called if there aren't any more
devices.  That is, we should be able to be unloaded from
Device Manager.
src/httpdisk/bus.c