kernel32: Added a number of activation context tests.

This commit is contained in:
Jacek Caban 2007-07-26 19:42:06 +02:00 committed by Alexandre Julliard
parent a8fd94b126
commit 43adec3e81
3 changed files with 1062 additions and 4 deletions

View file

@ -6,6 +6,7 @@ TESTDLL = kernel32.dll
IMPORTS = advapi32 kernel32
CTESTS = \
actctx.c \
alloc.c \
atom.c \
change.c \

1058
dlls/kernel32/tests/actctx.c Normal file

File diff suppressed because it is too large Load diff

View file

@ -534,7 +534,7 @@ static WCHAR *build_assembly_id( const struct assembly_identity *ai )
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};
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[] =
{',','t','y','p','e','=','"','w','i','n','3','2','"',0};
static const WCHAR versionW[] =
@ -2127,7 +2127,7 @@ NTSTATUS WINAPI RtlCreateActivationContext( HANDLE *handle, const void *ptr )
if ((status = get_module_filename( NtCurrentTeb()->Peb->ImageBaseAddress, &dir, 0 )))
goto error;
if ((p = strrchrW( dir.Buffer, '\\' ))) *p = 0;
if ((p = strrchrW( dir.Buffer, '\\' ))) p[1] = 0;
actctx->appdir.info = dir.Buffer;
}
@ -2445,8 +2445,7 @@ NTSTATUS WINAPI RtlQueryInformationActivationContext( ULONG flags, HANDLE handle
return STATUS_BUFFER_TOO_SMALL;
}
/* FIXME: this is a big HACK */
afdi->ulFlags = (index > 1) ? 16 : ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION;
afdi->ulFlags = 0; /* FIXME */
afdi->ulEncodedAssemblyIdentityLength = (id_len - 1) * sizeof(WCHAR);
afdi->ulManifestPathType = assembly->manifest.type;
afdi->ulManifestPathLength = assembly->manifest.info ? (path_len - 1) * sizeof(WCHAR) : 0;