Commit c44d0f0b authored by André Hentschel's avatar André Hentschel Committed by Vitaly Lipatov

ntdll: Support ISOLATIONAWARE_MANIFEST_RESOURCE_ID range

parent 464fec3b
......@@ -54,6 +54,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(actctx);
/* we don't want to include winuser.h */
#define RT_MANIFEST ((ULONG_PTR)24)
#define CREATEPROCESS_MANIFEST_RESOURCE_ID ((ULONG_PTR)1)
#define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID ((ULONG_PTR)1)
#define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID ((ULONG_PTR)16)
/* from oaidl.h */
typedef enum tagLIBFLAGS {
......@@ -3331,8 +3333,14 @@ static NTSTATUS lookup_assembly(struct actctx_loader* acl,
status = open_nt_file( &file, &nameW );
if (!status)
{
status = get_manifest_in_pe_file( acl, ai, nameW.Buffer, directory, FALSE, file,
(LPCWSTR)CREATEPROCESS_MANIFEST_RESOURCE_ID, 0 );
INT rid;
for (rid = MINIMUM_RESERVED_MANIFEST_RESOURCE_ID;
rid <= MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID; rid++)
{
status = get_manifest_in_pe_file( acl, ai, nameW.Buffer, directory, FALSE, file,
(LPCWSTR)(ULONG_PTR)rid, 0 );
if (status == STATUS_SUCCESS) break;
}
NtClose( file );
if (status == STATUS_SUCCESS)
break;
......
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