Author: cgutman
Date: Sat Aug 27 19:29:52 2011
New Revision: 53476

URL: http://svn.reactos.org/svn/reactos?rev=53476&view=rev
Log:
[PO]
- Fix RtlCompareMemory typos
- Remove unneeded code

Modified:
    trunk/reactos/ntoskrnl/po/events.c

Modified: trunk/reactos/ntoskrnl/po/events.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/po/events.c?rev=53476&r1=53475&r2=53476&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/po/events.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/po/events.c [iso-8859-1] Sat Aug 27 19:29:52 2011
@@ -63,9 +63,6 @@
 {
        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 @@
             
             ZwShutdownSystem(ShutdownNoReboot);
         }
-            
        }
 
        /* Allocate a new workitem to send the next IOCTL_GET_SYS_BUTTON_EVENT 
*/
@@ -175,9 +171,9 @@
                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;


Reply via email to