mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 00:43:00 -05:00
memfs: fix minor problem in command line parsing
This commit is contained in:
parent
d0eee263c8
commit
f30a3ed7f3
@ -70,7 +70,7 @@ static ULONG argtol(wchar_t **argp, ULONG deflt)
|
|||||||
|
|
||||||
wchar_t *endp;
|
wchar_t *endp;
|
||||||
ULONG ul = wcstol(argp[0], &endp, 10);
|
ULONG ul = wcstol(argp[0], &endp, 10);
|
||||||
return 0 != ul ? ul : deflt;
|
return L'\0' != argp[0][0] && L'\0' == *endp ? ul : deflt;
|
||||||
}
|
}
|
||||||
|
|
||||||
static wchar_t *argtos(wchar_t **argp)
|
static wchar_t *argtos(wchar_t **argp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user