Avoid crash on usage message.

This commit is contained in:
Alexandre Julliard 2000-02-20 14:02:47 +00:00
parent 45a4b0a2ec
commit ec74593be2

View File

@ -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);
}