cmd: Environment variables contain signed numbers.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-11-25 20:47:23 +01:00
parent 69d0381b5a
commit 5d48eac456
1 changed files with 1 additions and 1 deletions

View File

@ -3713,7 +3713,7 @@ static int WCMD_peeknumber(VARSTACK **varstack) {
if (!thisvar->isnum) {
WCHAR tmpstr[MAXSTRING];
if (GetEnvironmentVariableW(thisvar->variable, tmpstr, MAXSTRING)) {
result = wcstoul(tmpstr,NULL,0);
result = wcstol(tmpstr,NULL,0);
}
WINE_TRACE("Envvar %s converted to %d\n", wine_dbgstr_w(thisvar->variable), result);
} else {