1
0
Fork 0
mirror of https://github.com/reactos/reactos.git synced 2025-05-23 19:14:48 +00:00
* Do not allow "/" as a parameter prefix in unixes.

svn path=/trunk/; revision=69120
This commit is contained in:
David Quintana 2015-09-08 15:30:32 +00:00
parent 5b5fa693bd
commit 850153bbd0

View file

@ -15,7 +15,8 @@ char* imageFileName;
FATFS g_Filesystem; FATFS g_Filesystem;
int isMounted = 0; static int isMounted = 0;
static char buff[32768];
// tool needed by fatfs // tool needed by fatfs
DWORD get_fattime() DWORD get_fattime()
@ -57,7 +58,11 @@ DWORD get_fattime()
int is_command(const char* parg) int is_command(const char* parg)
{ {
#if _WIN32
return (parg[0] == '/') || (parg[0] == '-'); return (parg[0] == '/') || (parg[0] == '-');
#else
return (parg[0] == '-');
#endif
} }
#define NEED_PARAMS(_min_,_max_) \ #define NEED_PARAMS(_min_,_max_) \
@ -175,7 +180,6 @@ int main(int oargc, char* oargv[])
{ {
FILE* fe; FILE* fe;
FIL fv = { 0 }; FIL fv = { 0 };
char buff[32768];
UINT rdlen = 0; UINT rdlen = 0;
UINT wrlen = 0; UINT wrlen = 0;
@ -212,7 +216,6 @@ int main(int oargc, char* oargv[])
{ {
FIL fe = { 0 }; FIL fe = { 0 };
FILE* fv; FILE* fv;
char buff[32768];
UINT rdlen = 0; UINT rdlen = 0;
UINT wrlen = 0; UINT wrlen = 0;
@ -260,7 +263,6 @@ int main(int oargc, char* oargv[])
{ {
FIL fe = { 0 }; FIL fe = { 0 };
FIL fv = { 0 }; FIL fv = { 0 };
char buff[32768];
UINT rdlen = 0; UINT rdlen = 0;
UINT wrlen = 0; UINT wrlen = 0;