[KERNEL32]: Fix a bug in QueryActCtx

svn path=/trunk/; revision=59871
This commit is contained in:
Alex Ionescu 2013-08-29 16:42:14 +00:00
parent 95ea6a8d77
commit b626c99f0b

View file

@ -336,6 +336,7 @@ QueryActCtxW(IN DWORD dwFlags,
BaseSetLastNTError(STATUS_INVALID_PARAMETER_3); BaseSetLastNTError(STATUS_INVALID_PARAMETER_3);
return FALSE; return FALSE;
} }
break;
default: default:
@ -373,7 +374,7 @@ QueryActCtxW(IN DWORD dwFlags,
} }
/* These 3 flags are mutually exclusive -- only one should be present */ /* These 3 flags are mutually exclusive -- only one should be present */
switch (dwFlags & (QUERY_ACTCTX_FLAG_VALID & ~ QUERY_ACTCTX_FLAG_NO_ADDREF)) switch (dwFlags & (QUERY_ACTCTX_FLAG_VALID & ~QUERY_ACTCTX_FLAG_NO_ADDREF))
{ {
/* Convert into native format */ /* Convert into native format */
case QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX: case QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX:
@ -401,6 +402,10 @@ QueryActCtxW(IN DWORD dwFlags,
} }
/* Now call the native API */ /* Now call the native API */
DPRINT1("SXS: %s() Calling Native API with Native Flags %lx for Win32 Flags %lx\n",
__FUNCTION__,
NativeFlags,
dwFlags);
Status = RtlQueryInformationActivationContext(NativeFlags, Status = RtlQueryInformationActivationContext(NativeFlags,
hActCtx, hActCtx,
pvSubInstance, pvSubInstance,