mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
Avoid crash on usage message.
This commit is contained in:
parent
45a4b0a2ec
commit
ec74593be2
@ -114,9 +114,6 @@ struct options Options =
|
||||
const char *argv0;
|
||||
|
||||
static const char szUsage[] =
|
||||
"%s\n"
|
||||
"Usage: %s [options] \"program_name [arguments]\"\n"
|
||||
"\n"
|
||||
"Options:\n"
|
||||
" -config name Specify config file to use\n"
|
||||
" -debug Enter debugger before starting application\n"
|
||||
@ -147,7 +144,8 @@ static const char szUsage[] =
|
||||
*/
|
||||
void MAIN_Usage( char *name )
|
||||
{
|
||||
MESSAGE( szUsage, WINE_RELEASE_INFO, name );
|
||||
MESSAGE( WINE_RELEASE_INFO "\nUsage: %s [options] \"program_name [arguments]\"\n\n", name );
|
||||
write( 2, szUsage, sizeof(szUsage)-1 ); /* too large for MESSAGE() */
|
||||
ExitProcess(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user