- Fix RtlCompareMemory typos
- Remove unneeded code

svn path=/trunk/; revision=53476
This commit is contained in:
Cameron Gutman 2011-08-27 19:29:52 +00:00
parent a7b384319a
commit 6c6c9bf698

View file

@ -64,9 +64,6 @@ PopGetSysButtonCompletion(
PSYS_BUTTON_CONTEXT SysButtonContext = Context;
ULONG SysButton;
if (Irp->PendingReturned)
IoMarkIrpPending(Irp);
/* The DeviceObject can be NULL, so use the one we stored */
DeviceObject = SysButtonContext->DeviceObject;
@ -87,7 +84,6 @@ PopGetSysButtonCompletion(
ZwShutdownSystem(ShutdownNoReboot);
}
}
/* Allocate a new workitem to send the next IOCTL_GET_SYS_BUTTON_EVENT */
@ -175,9 +171,9 @@ PopAddRemoveSysCapsCallback(IN PVOID NotificationStructure,
return STATUS_REVISION_MISMATCH;
if (Notification->Size != sizeof(DEVICE_INTERFACE_CHANGE_NOTIFICATION))
return STATUS_INVALID_PARAMETER;
if (RtlCompareMemory(&Notification->Event, &GUID_DEVICE_INTERFACE_ARRIVAL, sizeof(GUID) == sizeof(GUID)))
if (RtlCompareMemory(&Notification->Event, &GUID_DEVICE_INTERFACE_ARRIVAL, sizeof(GUID)) == sizeof(GUID))
Arrival = TRUE;
else if (RtlCompareMemory(&Notification->Event, &GUID_DEVICE_INTERFACE_REMOVAL, sizeof(GUID) == sizeof(GUID)))
else if (RtlCompareMemory(&Notification->Event, &GUID_DEVICE_INTERFACE_REMOVAL, sizeof(GUID)) == sizeof(GUID))
Arrival = FALSE;
else
return STATUS_INVALID_PARAMETER;