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

as switches.
oldstable
Andriy Palamarchuk 2002-05-04 18:30:27 +00:00 committed by Alexandre Julliard
parent bcc6256bf0
commit cff4a12bdf
1 changed files with 2 additions and 3 deletions

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;
}
}