Commit 77da3d2d authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

Prevent crash when no URL is specified.

parent 2a7fce1c
......@@ -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");
......
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