Author: jimtabor
Date: Mon Dec 8 19:40:37 2008
New Revision: 37951
URL:
http://svn.reactos.org/svn/reactos?rev=37951&view=rev
Log:
- New patch by hto: Suspicious code in User32.dll, see bug 3935.
Modified:
trunk/reactos/dll/win32/user32/windows/dialog.c
Modified: trunk/reactos/dll/win32/user32/windows/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/dialog.c [iso-8859-1] Mon Dec 8 19:40:37 2008
@@ -2035,7 +2035,7 @@
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 @@
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 );
}