mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
- New patch by hto: Suspicious code in User32.dll, see bug 3935.
svn path=/trunk/; revision=37951
This commit is contained in:
parent
0bfc5f6d4d
commit
cf7857d09f
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue