reg: Compile with msvcrt.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3f0ebaeebb
commit
c6c95a026b
|
@ -1,5 +1,5 @@
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue