Commit 3c8b4850 authored by Alexandre Julliard's avatar Alexandre Julliard

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 (cherry picked from commit 8a6115f7)
parent 676d15ad
...@@ -640,8 +640,6 @@ static void init_paths( char *argv[] ) ...@@ -640,8 +640,6 @@ static void init_paths( char *argv[] )
bin_dir = realpath_dirname( path ); bin_dir = realpath_dirname( path );
free( path ); free( path );
} }
#else
bin_dir = realpath_dirname( argv[0] );
#endif #endif
if (!bin_dir) bin_dir = build_path( dll_dir, DLL_TO_BINDIR ); if (!bin_dir) bin_dir = build_path( dll_dir, DLL_TO_BINDIR );
data_dir = build_path( bin_dir, BIN_TO_DATADIR ); data_dir = build_path( bin_dir, BIN_TO_DATADIR );
......
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