[NTOSKRNL] Add missed _SEH2_YIELD's
authorDmitry Chapyshev <dmitry@reactos.org>
Sat, 24 Sep 2016 09:34:09 +0000 (09:34 +0000)
committerDmitry Chapyshev <dmitry@reactos.org>
Sat, 24 Sep 2016 09:34:09 +0000 (09:34 +0000)
svn path=/trunk/; revision=72788

reactos/ntoskrnl/kd64/amd64/kdx64.c
reactos/ntoskrnl/ke/amd64/except.c
reactos/ntoskrnl/lpc/send.c
reactos/ntoskrnl/se/audit.c
reactos/ntoskrnl/se/sd.c

index 219013b..26e4ecf 100644 (file)
@@ -105,7 +105,7 @@ KdpSysReadMsr(IN ULONG Msr,
     {
         _SEH2_YIELD(return STATUS_NO_SUCH_DEVICE);
     }
-    _SEH2_END
+    _SEH2_END;
 
     return STATUS_SUCCESS;
 }
@@ -124,7 +124,7 @@ KdpSysWriteMsr(IN ULONG Msr,
     {
         _SEH2_YIELD(return STATUS_NO_SUCH_DEVICE);
     }
-    _SEH2_END
+    _SEH2_END;
 
     return STATUS_SUCCESS;
 }
index 6fccfab..2990352 100644 (file)
@@ -229,7 +229,7 @@ KiPrepareUserDebugData(void)
     _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
     {
     }
-    _SEH2_END
+    _SEH2_END;
 }
 
 VOID
index 6c75c9d..be7ef1b 100644 (file)
@@ -746,7 +746,7 @@ NtRequestWaitReplyPort(IN HANDLE PortHandle,
             if (!NT_SUCCESS(Status))
             {
                 DPRINT1("LpcpVerifyMessageDataInfo failed\n");
-                return Status;
+                _SEH2_YIELD(return Status);
             }
         }
         _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
@@ -861,7 +861,7 @@ NtRequestWaitReplyPort(IN HANDLE PortHandle,
                     ObDereferenceObject(Port);
                     DPRINT1("NumberOfEntries has changed: %u, %u\n",
                             DataInfo->NumberOfEntries, NumberOfDataEntries);
-                    return STATUS_INVALID_PARAMETER;
+                    _SEH2_YIELD(return STATUS_INVALID_PARAMETER);
                 }
             }
 
index ea9f7b7..c10e3bf 100644 (file)
@@ -1101,7 +1101,7 @@ NtOpenObjectAuditAlarm(
             if (PrivilegeCount > SEP_PRIVILEGE_SET_MAX_COUNT)
             {
                 Status = STATUS_INVALID_PARAMETER;
-                goto Cleanup;
+                _SEH2_YIELD(goto Cleanup);
             }
 
             /* Calculate the size of the PrivilegeSet structure */
@@ -1118,7 +1118,7 @@ NtOpenObjectAuditAlarm(
             {
                 DPRINT1("Failed to allocate %u bytes\n", PrivilegeSetSize);
                 Status = STATUS_INSUFFICIENT_RESOURCES;
-                goto Cleanup;
+                _SEH2_YIELD(goto Cleanup);
             }
 
             /* Copy the privileges */
@@ -1324,7 +1324,7 @@ NtPrivilegedServiceAuditAlarm(
         if (PrivilegeCount > SEP_PRIVILEGE_SET_MAX_COUNT)
         {
             Status = STATUS_INVALID_PARAMETER;
-            goto Cleanup;
+            _SEH2_YIELD(goto Cleanup);
         }
 
         /* Calculate the size of the Privileges structure */
@@ -1341,7 +1341,7 @@ NtPrivilegedServiceAuditAlarm(
         {
             DPRINT1("Failed to allocate %u bytes\n", PrivilegesSize);
             Status = STATUS_INSUFFICIENT_RESOURCES;
-            goto Cleanup;
+            _SEH2_YIELD(goto Cleanup);
         }
 
         /* Copy the privileges */
index 15b8c65..998b2fe 100644 (file)
@@ -528,7 +528,7 @@ SeCaptureSecurityDescriptor(
     {
         _SEH2_YIELD(return _SEH2_GetExceptionCode());
     }
-    _SEH2_END
+    _SEH2_END;
 
     /*
      * Allocate enough memory to store a complete copy of a self-relative