mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 08:49:15 +00:00
winevdm: Tell dosbox to read the current user's config.
Signed-off-by: Luis Sahagun <shankao@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
221b23bf48
commit
6a05abed48
1 changed files with 5 additions and 4 deletions
|
@ -192,12 +192,13 @@ static void start_dosbox( const char *appname, const char *args )
|
||||||
p += sprintf( p, "exit\n" );
|
p += sprintf( p, "exit\n" );
|
||||||
if (WriteFile( file, buffer, strlen(buffer), &written, NULL ) && written == strlen(buffer))
|
if (WriteFile( file, buffer, strlen(buffer), &written, NULL ) && written == strlen(buffer))
|
||||||
{
|
{
|
||||||
const char *args[4];
|
const char *args[5];
|
||||||
char *config_file = wine_get_unix_file_name( config );
|
char *config_file = wine_get_unix_file_name( config );
|
||||||
args[0] = dosbox;
|
args[0] = dosbox;
|
||||||
args[1] = "-conf";
|
args[1] = "-userconf";
|
||||||
args[2] = config_file;
|
args[2] = "-conf";
|
||||||
args[3] = NULL;
|
args[3] = config_file;
|
||||||
|
args[4] = NULL;
|
||||||
ret = _spawnvp( _P_WAIT, args[0], args );
|
ret = _spawnvp( _P_WAIT, args[0], args );
|
||||||
}
|
}
|
||||||
CloseHandle( file );
|
CloseHandle( file );
|
||||||
|
|
Loading…
Reference in a new issue