mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 06:51:22 +00:00
[KERNEL32]: Fix a bug in QueryActCtx
svn path=/trunk/; revision=59871
This commit is contained in:
parent
95ea6a8d77
commit
b626c99f0b
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue