mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- New patch by hto: Suspicious code in User32.dll, see bug 3935.
svn path=/trunk/; revision=37951
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user