winevdm: Use secure mode when running apps in DOSBox.

This commit is contained in:
André Hentschel 2011-07-20 22:31:03 +02:00 committed by Alexandre Julliard
parent b48f7bec0d
commit 0e3527a564
1 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,8 @@ static void start_dosbox( const char *appname, const char *args )
p += sprintf( p, "mount %c %s/dosdevices/%c:\n", 'a' + i, config_dir, 'a' + i );
p += sprintf( p, "%c:\ncd ", path[0] );
p += WideCharToMultiByte( CP_UNIXCP, 0, path + 2, -1, p, 4 * strlenW(path), NULL, NULL ) - 1;
p += sprintf( p, "\n%s %s\n", appname, args );
p += sprintf( p, "\nconfig -securemode\n" );
p += sprintf( p, "%s %s\n", appname, args );
p += sprintf( p, "exit\n" );
if (WriteFile( file, buffer, strlen(buffer), &written, NULL ) && written == strlen(buffer))
{