ntdll: Append ntdll.dll to the builtin_modules list.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49626
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-07-29 11:41:05 -05:00 committed by Alexandre Julliard
parent 3f8d60e2ac
commit b7e51a1653
1 changed files with 4 additions and 1 deletions

View File

@ -1301,7 +1301,10 @@ static HMODULE load_ntdll(void)
if ((fd = open( name, O_RDONLY )) != -1)
{
status = virtual_map_ntdll( fd, &module );
struct stat st;
fstat( fd, &st );
if (!(status = virtual_map_ntdll( fd, &module )))
add_builtin_module( module, NULL, &st );
close( fd );
}
else