Fixed a problem when regedit interpreted file names, starting from '/'

as switches.
This commit is contained in:
Andriy Palamarchuk 2002-05-04 18:30:27 +00:00 committed by Alexandre Julliard
parent bcc6256bf0
commit cff4a12bdf

View file

@ -138,9 +138,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
break;
}
} else {
printf("%s: Incorrect switch format, switch '%c'\n%s",
getAppName(), chu, usage);
exit(1);
/* this is a file name, starting from '/' */
s--;
break;
}
}