winevdm: avoid shadowing a parameter
Austin English
austinenglish at gmail.com
Wed Mar 9 03:08:45 CST 2011
--
-Austin
-------------- next part --------------
diff --git a/programs/winevdm/winevdm.c b/programs/winevdm/winevdm.c
index ca55d80..463e6c0 100644
--- a/programs/winevdm/winevdm.c
+++ b/programs/winevdm/winevdm.c
@@ -178,13 +178,13 @@ static void start_dosbox( const char *appname, const char *args )
p += sprintf( p, "exit\n" );
if (WriteFile( file, buffer, strlen(buffer), &written, NULL ) && written == strlen(buffer))
{
- const char *args[4];
+ const char *vpargs[4];
char *config_file = wine_get_unix_file_name( config );
- args[0] = dosbox;
- args[1] = "-conf";
- args[2] = config_file;
- args[3] = NULL;
- ret = spawnvp( _P_WAIT, args[0], args );
+ vpargs[0] = dosbox;
+ vpargs[1] = "-conf";
+ vpargs[2] = config_file;
+ vpargs[3] = NULL;
+ ret = spawnvp( _P_WAIT, vpargs[0], vpargs );
}
CloseHandle( file );
DeleteFileW( config );
More information about the wine-patches
mailing list