mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
Prevent crash when no URL is specified.
This commit is contained in:
parent
2a7fce1ce2
commit
77da3d2d39
1 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,12 @@ int main (int argc, char *argv[])
|
|||
LONG r;
|
||||
wine_get_unix_file_name_t wine_get_unix_file_name_ptr;
|
||||
|
||||
if (argc <= 1)
|
||||
{
|
||||
fprintf( stderr, "Usage: winebrowser URL\n", argv[0] );
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* check if the argument is a local file */
|
||||
wine_get_unix_file_name_ptr = (wine_get_unix_file_name_t)
|
||||
GetProcAddress( GetModuleHandle( "KERNEL32"), "wine_get_unix_file_name");
|
||||
|
|
Loading…
Reference in a new issue