- if (DestinationString.Length == WaitEntry->AliasName.Length)
- {
- if (RtlCompareMemory(WaitEntry->AliasName.Buffer,
- DestinationString.Buffer,
- DestinationString.Length) ==
- DestinationString.Length)
- {
-CancelWait:
- RemoveEntryList(&WaitIrp->Tail.Overlay.ListEntry);
- if (KeCancelTimer(&WaitEntry->Timer))
- {
- WaitEntry->WaitQueue = (PNP_WAIT_QUEUE)Linkage;
- Linkage = WaitEntry;
- }
- else
- {
- WaitEntry->Irp = NULL;
- WaitIrp->Tail.Overlay.DriverContext[1] = NULL;
- }
-
- if (IoSetCancelRoutine(WaitIrp, NULL))
- {
- WaitIrp->IoStatus.Information = 0;
- WaitIrp->IoStatus.Status = Status;
- InsertTailList(List, &WaitIrp->Tail.Overlay.ListEntry);
- }
- else
- {
- WaitIrp->Tail.Overlay.DriverContext[1] = NULL;
- }
- }
- }
+ /* We have an alias. Use that for comparison */
+ WaitName = WaitEntry->AliasName;
+ PipeName = PipePathUpper;