- New patch by hto: Suspicious code in User32.dll, see bug 3935.

svn path=/trunk/; revision=37951
This commit is contained in:
James Tabor 2008-12-09 01:40:37 +00:00
parent 0bfc5f6d4d
commit cf7857d09f

View file

@ -2035,7 +2035,7 @@ GetDlgItemTextA(
LPSTR lpString,
int nMaxCount)
{
if (lpString && (lpString > 0)) lpString[0] = '\0';
if (lpString && (nMaxCount > 0)) lpString[0] = '\0';
return (UINT)SendDlgItemMessageA( hDlg, nIDDlgItem, WM_GETTEXT, nMaxCount, (LPARAM)lpString );
}
@ -2051,7 +2051,7 @@ GetDlgItemTextW(
LPWSTR lpString,
int nMaxCount)
{
if (lpString && (lpString > 0)) lpString[0] = '\0';
if (lpString && (nMaxCount > 0)) lpString[0] = '\0';
return (UINT)SendDlgItemMessageW( hDlg, nIDDlgItem, WM_GETTEXT, nMaxCount, (LPARAM)lpString );
}