Commit 5d48eac4 authored by Alexandre Julliard's avatar Alexandre Julliard

cmd: Environment variables contain signed numbers.

parent 69d0381b
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment