ntdll: Prefer the ntdll path over argv[0] on platforms without reliable exe information.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54371
This commit is contained in:
Alexandre Julliard 2023-01-26 10:37:48 +01:00
parent b6f58142f7
commit 8a6115f76f

View file

@ -640,8 +640,6 @@ static void init_paths( char *argv[] )
bin_dir = realpath_dirname( path );
free( path );
}
#else
bin_dir = realpath_dirname( argv[0] );
#endif
if (!bin_dir) bin_dir = build_path( dll_dir, DLL_TO_BINDIR );
data_dir = build_path( bin_dir, BIN_TO_DATADIR );