if (Irp->PendingReturned)
{
+#ifdef LIBCAPTIVE
+ /* FIXME: Why the hell should we bother with some damned APCs?!?
+ * Call it directly below!
+ */
+ DPRINT("IofCompleteRequest() would like to dispatch APC: F*ck off!\n");
+#else /* !LIBCAPTIVE */
DPRINT("Dispatching APC\n");
-#ifndef LIBCAPTIVE
KeInitializeApc(&Irp->Tail.Apc,
&Irp->Tail.Overlay.Thread->Tcb,
0,
(PVOID)(ULONG)PriorityBoost,
KernelMode);
DPRINT("Finished dispatching APC\n");
-#else /* !LIBCAPTIVE */
- KeBugCheck(0);
#endif /* !LIBCAPTIVE */
}
+#ifndef LIBCAPTIVE
else
+#endif /* LIBCAPTIVE */
{
DPRINT("Calling completion routine directly\n");
IoSecondStageCompletion(Irp,PriorityBoost);