Author: tfaber
Date: Wed Sep 2 09:19:52 2015
New Revision: 68911
URL: http://svn.reactos.org/svn/reactos?rev=68911&view=rev
Log:
[NTOS:SE]
- Correctly check ACE type in SeFastTraverseCheck. CID 1102005
Modified:
trunk/reactos/ntoskrnl/se/accesschk.c
Modified: trunk/reactos/ntoskrnl/se/accesschk.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/accesschk.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/se/accesschk.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/se/accesschk.c [iso-8859-1] Wed Sep 2 09:19:52 2015
@@ -493,7 +493,7 @@
continue;
/* If access-allowed ACE */
- if (Ace->Header.AceType & ACCESS_ALLOWED_ACE_TYPE)
+ if (Ace->Header.AceType == ACCESS_ALLOWED_ACE_TYPE)
{
/* Check if all accesses are granted */
if (!(Ace->Mask & DesiredAccess))
@@ -504,9 +504,9 @@
return TRUE;
}
/* If access-denied ACE */
- else if (Ace->Header.AceType & ACCESS_DENIED_ACE_TYPE)
- {
- /* Here, only check if it denies all the access wanted and deny if so */
+ else if (Ace->Header.AceType == ACCESS_DENIED_ACE_TYPE)
+ {
+ /* Here, only check if it denies any access wanted and deny if so */
if (Ace->Mask & DesiredAccess)
return FALSE;
}
Author: tfaber
Date: Wed Sep 2 05:38:02 2015
New Revision: 68909
URL: http://svn.reactos.org/svn/reactos?rev=68909&view=rev
Log:
[RTL]
- Fix check for optional parameters in RtlGetCallersAddress
Modified:
trunk/reactos/lib/rtl/i386/except.c
Modified: trunk/reactos/lib/rtl/i386/except.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/i386/except.c?rev=…
==============================================================================
--- trunk/reactos/lib/rtl/i386/except.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/i386/except.c [iso-8859-1] Wed Sep 2 05:38:02 2015
@@ -31,7 +31,7 @@
FrameCount = RtlCaptureStackBackTrace(2, 2, &BackTrace[0],BackTraceHash);
/* Only if user want it */
- if (*CallersAddress != NULL)
+ if (CallersAddress != NULL)
{
/* only when first frames exist */
if (FrameCount >= 1)
@@ -45,7 +45,7 @@
}
/* Only if user want it */
- if (*CallersCaller != NULL)
+ if (CallersCaller != NULL)
{
/* only when second frames exist */
if (FrameCount >= 2)
Author: pschweitzer
Date: Tue Sep 1 22:32:55 2015
New Revision: 68905
URL: http://svn.reactos.org/svn/reactos?rev=68905&view=rev
Log:
[NTOSKRNL]
Fix KdpPrompt():
- Don't attempt to return in the middle of the loop. It leads to keep the mouse disabled instead of reenabling it.
- Also, return a string length that actually matches what was written to the output buffer.
This fixes invalid behavior on RtlAssert when used with #if 0 moved to #if 1, or when Windows NTDLL is used in ReactOS.
CORE-10082 #resolve #comment Fixed with r68905
CORE-10083 #resolve #comment Fixed with r68905
Modified:
trunk/reactos/ntoskrnl/kdbg/kdb_cli.c
Modified: trunk/reactos/ntoskrnl/kdbg/kdb_cli.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_cli.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] Tue Sep 1 22:32:55 2015
@@ -3745,19 +3745,7 @@
* DbgPrompt does not null terminate, but it does
*/
*(PCHAR)(OutString + i) = 0;
-
- /* Print a new line */
- KdPortPutByteEx(&SerialPortInfo, '\r');
- KdPortPutByteEx(&SerialPortInfo, '\n');
-
- /* Release spinlock */
- KiReleaseSpinLock(&KdpSerialSpinLock);
-
- /* Lower IRQL back */
- KeLowerIrql(OldIrql);
-
- /* Return the length */
- return OutStringLength + 1;
+ break;
}
/* Write it back and print it to the log */
@@ -3779,5 +3767,5 @@
KeLowerIrql(OldIrql);
/* Return the length */
- return OutStringLength;
-}
+ return i;
+}