Alexandre Julliard : ntdll: Relax the activation context size check.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Aug 2 06:23:19 CDT 2007


Module: wine
Branch: master
Commit: ed3b5322f634a1c75375873ebe7b9191505a8694
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ed3b5322f634a1c75375873ebe7b9191505a8694

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Aug  2 13:07:23 2007 +0200

ntdll: Relax the activation context size check.

---

 dlls/ntdll/actctx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/actctx.c b/dlls/ntdll/actctx.c
index eb4cb71..f7a0fb9 100644
--- a/dlls/ntdll/actctx.c
+++ b/dlls/ntdll/actctx.c
@@ -2157,7 +2157,7 @@ NTSTATUS WINAPI RtlCreateActivationContext( HANDLE *handle, const void *ptr )
 
     TRACE("%p %08x\n", pActCtx, pActCtx ? pActCtx->dwFlags : 0);
 
-    if (!pActCtx || pActCtx->cbSize != sizeof(*pActCtx) ||
+    if (!pActCtx || pActCtx->cbSize < sizeof(*pActCtx) ||
         (pActCtx->dwFlags & ~ACTCTX_FLAGS_ALL))
         return STATUS_INVALID_PARAMETER;
 




More information about the wine-cvs mailing list