cmd: Environment variables contain signed numbers.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
69d0381b5a
commit
5d48eac456
|
@ -3713,7 +3713,7 @@ static int WCMD_peeknumber(VARSTACK **varstack) {
|
||||||
if (!thisvar->isnum) {
|
if (!thisvar->isnum) {
|
||||||
WCHAR tmpstr[MAXSTRING];
|
WCHAR tmpstr[MAXSTRING];
|
||||||
if (GetEnvironmentVariableW(thisvar->variable, 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);
|
WINE_TRACE("Envvar %s converted to %d\n", wine_dbgstr_w(thisvar->variable), result);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue