Commit 4097865b authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Do not print 'wine: no executeable found' if we did execute something.

parent 03287451
...@@ -47,7 +47,7 @@ void MAIN_EmulatorRun( void ) ...@@ -47,7 +47,7 @@ void MAIN_EmulatorRun( void )
extern void THUNK_InitCallout( void ); extern void THUNK_InitCallout( void );
char startProg[256], defProg[256]; char startProg[256], defProg[256];
HINSTANCE32 handle; HINSTANCE32 handle;
int i; int i, tasks = 0;
MSG32 msg; MSG32 msg;
/* Load system DLLs into the initial process (and initialize them) */ /* Load system DLLs into the initial process (and initialize them) */
...@@ -80,6 +80,7 @@ void MAIN_EmulatorRun( void ) ...@@ -80,6 +80,7 @@ void MAIN_EmulatorRun( void )
/* Load and run executables given on command line */ /* Load and run executables given on command line */
for (i = 1; i < MAIN_argc; i++) for (i = 1; i < MAIN_argc; i++)
{
if ((handle = WinExec32( MAIN_argv[i], SW_SHOWNORMAL )) < 32) if ((handle = WinExec32( MAIN_argv[i], SW_SHOWNORMAL )) < 32)
{ {
MSG("wine: can't exec '%s': ", MAIN_argv[i]); MSG("wine: can't exec '%s': ", MAIN_argv[i]);
...@@ -90,8 +91,10 @@ void MAIN_EmulatorRun( void ) ...@@ -90,8 +91,10 @@ void MAIN_EmulatorRun( void )
default: MSG("error=%d\n", handle ); break; default: MSG("error=%d\n", handle ); break;
} }
} }
else tasks++;
}
if (GetNumTasks() <= 1) if (!tasks)
{ {
MSG("wine: no executable file found.\n" ); MSG("wine: no executable file found.\n" );
ExitProcess( 0 ); ExitProcess( 0 );
......
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