mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[User32]
- Fix errno in dialog.c by linking to msvcrt with rbuild. Cmake does not have this issue, already links to msvcrt. Gdi32 rbuild does link to crtdll instead of msvcrt. Should we fix this too, before the Cmake switch over to see anything is different? svn path=/trunk/; revision=54498
This commit is contained in:
parent
e00f86150c
commit
e24e938fa0
2 changed files with 3 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
<module name="user32" type="win32dll" baseaddress="${BASEADDRESS_USER32}" installbase="system32" installname="user32.dll" unicode="yes" crt="dll">
|
||||
<module name="user32" type="win32dll" baseaddress="${BASEADDRESS_USER32}" installbase="system32" installname="user32.dll" unicode="yes" crt="msvcrt">
|
||||
<importlibrary definition="user32.pspec" />
|
||||
<include base="user32">.</include>
|
||||
<include base="user32">include</include>
|
||||
|
|
|
@ -2105,8 +2105,7 @@ GetDlgItemInt(
|
|||
result = strtol( str, &endptr, 10 );
|
||||
if (!endptr || (endptr == str)) /* Conversion was unsuccessful */
|
||||
return 0;
|
||||
/* FIXME: errno? */
|
||||
if (((result == 0) || (result == 0xFFFFFFFF))/* && (errno == ERANGE) */)
|
||||
if (((result == LONG_MIN) || (result == LONG_MAX)) && (errno == ERANGE) )
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
|
@ -2114,8 +2113,7 @@ GetDlgItemInt(
|
|||
result = strtoul( str, &endptr, 10 );
|
||||
if (!endptr || (endptr == str)) /* Conversion was unsuccessful */
|
||||
return 0;
|
||||
/* FIXME: errno? */
|
||||
if ((result == 0xFFFFFFFF)/* && (errno == ERANGE) */) return 0;
|
||||
if ((result == ULONG_MAX) && (errno == ERANGE) ) return 0;
|
||||
}
|
||||
if (lpTranslated) *lpTranslated = TRUE;
|
||||
return (UINT)result;
|
||||
|
|
Loading…
Reference in a new issue