- 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:
James Tabor 2011-11-25 22:18:20 +00:00
parent e00f86150c
commit e24e938fa0
2 changed files with 3 additions and 5 deletions

View file

@ -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>

View file

@ -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;