Commit c6c95a02 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg: Compile with msvcrt.

parent 3f0ebaee
MODULE = reg.exe
APPMODE = -mconsole -municode
APPMODE = -mconsole -municode -mno-cygwin
IMPORTS = advapi32
DELAYIMPORTS = user32
......
......@@ -284,8 +284,8 @@ static LPBYTE get_regdata(const WCHAR *data, DWORD reg_type, WCHAR separator, DW
{
LPWSTR rest;
unsigned long val;
val = strtoulW(data, &rest, (tolowerW(data[1]) == 'x') ? 16 : 10);
if (*rest || data[0] == '-' || (val == ~0u && errno == ERANGE) || val > ~0u) {
val = wcstoul(data, &rest, (tolowerW(data[1]) == 'x') ? 16 : 10);
if (*rest || data[0] == '-' || (val == ~0u && errno == ERANGE)) {
output_message(STRING_MISSING_INTEGER);
break;
}
......
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