Added support for a WINELOADER environment variable which allows the

specification of a different binary loader.
This commit is contained in:
Jeremy White 2000-10-25 20:28:22 +00:00 committed by Alexandre Julliard
parent 0e236a1f37
commit 51e4657694
1 changed files with 6 additions and 1 deletions

View File

@ -622,7 +622,12 @@ static void exec_wine_binary( char **argv, char **envp )
{
const char *path, *pos, *ptr;
/* first try bin directory */
/* first, try for a WINELOADER environment variable */
argv[0] = getenv("WINELOADER");
if (argv[0])
execve( argv[0], argv, envp );
/* next, try bin directory */
argv[0] = BINDIR "/wine";
execve( argv[0], argv, envp );