Author: dchapyshev
Date: Thu Sep 1 18:22:48 2016
New Revision: 72531
URL:
http://svn.reactos.org/svn/reactos?rev=72531&view=rev
Log:
[NTOS:EX]
- More correct exit on failure
Modified:
trunk/reactos/ntoskrnl/ex/sysinfo.c
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Thu Sep 1 18:22:48 2016
@@ -1241,8 +1241,8 @@
/* Check user's buffer size */
if (*ReqSize > Size)
{
- /* It is correct? How it is correct to leave the enclosed SEH
blocks? */
- _SEH2_YIELD(return STATUS_INFO_LENGTH_MISMATCH);
+ Status = STATUS_INFO_LENGTH_MISMATCH;
+ break;
}
/* Lock the entry */
@@ -1296,6 +1296,8 @@
KeLeaveCriticalRegion();
}
_SEH2_END;
+
+ if (!NT_SUCCESS(Status)) break;
}
}
_SEH2_FINALLY
@@ -1305,7 +1307,7 @@
}
_SEH2_END;
- return STATUS_SUCCESS;
+ return Status;
}
/* Class 17 - Information */