ntdll: Return correct status when manifest could not be loaded from file.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2021-11-12 16:49:49 +03:00 committed by Alexandre Julliard
parent 6e754202bf
commit 33bc90e687
2 changed files with 1 additions and 2 deletions

View File

@ -2683,7 +2683,6 @@ todo_wine
SetLastError(0xdeadbeef);
handle = CreateActCtxA(&actctx);
ok(handle == INVALID_HANDLE_VALUE, "got handle %p\n", handle);
todo_wine
ok(GetLastError() == ERROR_RESOURCE_NAME_NOT_FOUND, "got error %d\n", GetLastError());
/* load manifest from lpAssemblyDirectory directory */

View File

@ -3020,7 +3020,7 @@ static NTSTATUS get_manifest_in_associated_manifest( struct actctx_loader* acl,
status = get_manifest_in_manifest_file( acl, ai, nameW.Buffer, directory, FALSE, file );
NtClose( file );
}
else status = STATUS_RESOURCE_TYPE_NOT_FOUND;
else status = STATUS_RESOURCE_NAME_NOT_FOUND;
RtlFreeUnicodeString( &nameW );
return status;
}