Commit 0e3527a5 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winevdm: Use secure mode when running apps in DOSBox.

parent b48f7bec
...@@ -184,7 +184,8 @@ static void start_dosbox( const char *appname, const char *args ) ...@@ -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, "mount %c %s/dosdevices/%c:\n", 'a' + i, config_dir, 'a' + i );
p += sprintf( p, "%c:\ncd ", path[0] ); p += sprintf( p, "%c:\ncd ", path[0] );
p += WideCharToMultiByte( CP_UNIXCP, 0, path + 2, -1, p, 4 * strlenW(path), NULL, NULL ) - 1; 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" ); 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))
{ {
......
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