[ros-diffs] [cwittich] 45945: [RTL] sync find_query_actctx with wine 1.1.40
cwittich at svn.reactos.org
cwittich at svn.reactos.org
Sat Mar 6 15:29:56 CET 2010
Author: cwittich
Date: Sat Mar 6 15:29:56 2010
New Revision: 45945
URL: http://svn.reactos.org/svn/reactos?rev=45945&view=rev
Log:
[RTL]
sync find_query_actctx with wine 1.1.40
Modified:
trunk/reactos/lib/rtl/actctx.c
Modified: trunk/reactos/lib/rtl/actctx.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/actctx.c?rev=45945&r1=45944&r2=45945&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/actctx.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/actctx.c [iso-8859-1] Sat Mar 6 15:29:56 2010
@@ -2096,6 +2096,8 @@
if (flags & QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX)
{
+ if (*handle) return STATUS_INVALID_PARAMETER;
+
if (NtCurrentTeb()->ActivationContextStackPointer->ActiveFrame)
*handle = NtCurrentTeb()->ActivationContextStackPointer->ActiveFrame->ActivationContext;
}
@@ -2103,6 +2105,8 @@
{
ULONG magic;
LDR_DATA_TABLE_ENTRY *pldr;
+
+ if (!*handle) return STATUS_INVALID_PARAMETER;
LdrLockLoaderLock( 0, NULL, &magic );
if (!LdrFindEntryForAddress( *handle, &pldr ))
More information about the Ros-diffs
mailing list