Commit 43adec3e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

kernel32: Added a number of activation context tests.

parent a8fd94b1
...@@ -6,6 +6,7 @@ TESTDLL = kernel32.dll ...@@ -6,6 +6,7 @@ TESTDLL = kernel32.dll
IMPORTS = advapi32 kernel32 IMPORTS = advapi32 kernel32
CTESTS = \ CTESTS = \
actctx.c \
alloc.c \ alloc.c \
atom.c \ atom.c \
change.c \ change.c \
......
...@@ -534,7 +534,7 @@ static WCHAR *build_assembly_id( const struct assembly_identity *ai ) ...@@ -534,7 +534,7 @@ static WCHAR *build_assembly_id( const struct assembly_identity *ai )
static const WCHAR archW[] = static const WCHAR archW[] =
{',','p','r','o','c','e','s','s','o','r','A','r','c','h','i','t','e','c','t','u','r','e','=',0}; {',','p','r','o','c','e','s','s','o','r','A','r','c','h','i','t','e','c','t','u','r','e','=',0};
static const WCHAR public_keyW[] = static const WCHAR public_keyW[] =
{',','p','u','b','l','i','c','K','e','y','T','o','k','e','n','=','"',0}; {',','p','u','b','l','i','c','K','e','y','T','o','k','e','n','=',0};
static const WCHAR typeW[] = static const WCHAR typeW[] =
{',','t','y','p','e','=','"','w','i','n','3','2','"',0}; {',','t','y','p','e','=','"','w','i','n','3','2','"',0};
static const WCHAR versionW[] = static const WCHAR versionW[] =
...@@ -2127,7 +2127,7 @@ NTSTATUS WINAPI RtlCreateActivationContext( HANDLE *handle, const void *ptr ) ...@@ -2127,7 +2127,7 @@ NTSTATUS WINAPI RtlCreateActivationContext( HANDLE *handle, const void *ptr )
if ((status = get_module_filename( NtCurrentTeb()->Peb->ImageBaseAddress, &dir, 0 ))) if ((status = get_module_filename( NtCurrentTeb()->Peb->ImageBaseAddress, &dir, 0 )))
goto error; goto error;
if ((p = strrchrW( dir.Buffer, '\\' ))) *p = 0; if ((p = strrchrW( dir.Buffer, '\\' ))) p[1] = 0;
actctx->appdir.info = dir.Buffer; actctx->appdir.info = dir.Buffer;
} }
...@@ -2445,8 +2445,7 @@ NTSTATUS WINAPI RtlQueryInformationActivationContext( ULONG flags, HANDLE handle ...@@ -2445,8 +2445,7 @@ NTSTATUS WINAPI RtlQueryInformationActivationContext( ULONG flags, HANDLE handle
return STATUS_BUFFER_TOO_SMALL; return STATUS_BUFFER_TOO_SMALL;
} }
/* FIXME: this is a big HACK */ afdi->ulFlags = 0; /* FIXME */
afdi->ulFlags = (index > 1) ? 16 : ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION;
afdi->ulEncodedAssemblyIdentityLength = (id_len - 1) * sizeof(WCHAR); afdi->ulEncodedAssemblyIdentityLength = (id_len - 1) * sizeof(WCHAR);
afdi->ulManifestPathType = assembly->manifest.type; afdi->ulManifestPathType = assembly->manifest.type;
afdi->ulManifestPathLength = assembly->manifest.info ? (path_len - 1) * sizeof(WCHAR) : 0; afdi->ulManifestPathLength = assembly->manifest.info ? (path_len - 1) * sizeof(WCHAR) : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment