Commit 625583ef authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

Handle unknown parameters more gracefully.

parent 5042516c
......@@ -181,6 +181,7 @@ int main(int argc, char *argv[])
BOOL FunctionDllUnregisterServer = FALSE;
BOOL FunctionRegServer = FALSE;
BOOL FunctionUnregServer = FALSE;
BOOL FunctionUnknown = FALSE;
BOOL GotProductCode = FALSE;
LPCSTR PackageName = NULL;
......@@ -523,6 +524,11 @@ int main(int argc, char *argv[])
{
InstallUILevel = INSTALLUILEVEL_BASIC|INSTALLUILEVEL_PROGRESSONLY;
}
else if(!strcasecmp(argv[i]+2, "b+!"))
{
InstallUILevel = INSTALLUILEVEL_BASIC|INSTALLUILEVEL_ENDDIALOG;
WINE_FIXME("Unknown modifier: !\n");
}
else
{
fprintf(stderr, "Unknown option \"%s\" for UI level\n", argv[i]+2);
......@@ -556,6 +562,16 @@ int main(int argc, char *argv[])
{
ShowUsage(0);
}
else if(!strcasecmp(argv[i], "/m"))
{
FunctionUnknown = TRUE;
WINE_FIXME("Unknown parameter /m\n");
}
else if(!strcasecmp(argv[i], "/D"))
{
FunctionUnknown = TRUE;
WINE_FIXME("Unknown parameter /D\n");
}
else if(strchr(argv[i], '='))
{
StringListAppend(&Properties, argv[i]);
......@@ -638,6 +654,10 @@ int main(int argc, char *argv[])
{
WINE_FIXME( "/unregserver not implemented yet, ignoring\n" );
}
else if (FunctionUnknown)
{
WINE_FIXME( "Unknown function, ignoring\n" );
}
else
ShowUsage(1);
......
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