regsvr32: Do not attempt to register '/' or '-'.

This commit is contained in:
Hugh McMaster 2015-09-03 21:29:23 +10:00 committed by Alexandre Julliard
parent 76162a4ea8
commit 80c3fca056
1 changed files with 7 additions and 1 deletions

View File

@ -241,8 +241,14 @@ int wmain(int argc, WCHAR* argv[])
*/
for(i = 1; i < argc; i++)
{
if ((argv[i][0] == '/' || argv[i][0] == '-') && (!argv[i][2] || argv[i][2] == ':'))
if (argv[i][0] == '/' || argv[i][0] == '-')
{
if (!argv[i][1])
return INVALID_ARG;
if (argv[i][2] && argv[i][2] != ':')
continue;
switch (tolowerW(argv[i][1]))
{
case 'u':