mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
* windows/defwnd.c Fixed WM_GETTEXT error handling in DefWindowProcW().
svn path=/trunk/; revision=6580
This commit is contained in:
parent
7e9933a785
commit
9c02db5a95
1 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: defwnd.c,v 1.104 2003/11/02 06:58:57 navaraf Exp $
|
||||
/* $Id: defwnd.c,v 1.105 2003/11/08 15:33:51 mf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS user32.dll
|
||||
|
@ -1386,7 +1386,7 @@ DefWindowProcA(HWND hWnd,
|
|||
(WindowText = GetPropA(hWnd, WindowTextAtom)) == NULL)
|
||||
{
|
||||
if (wParam > 1)
|
||||
{
|
||||
{
|
||||
*((PSTR)lParam) = '\0';
|
||||
}
|
||||
return (0);
|
||||
|
@ -1489,11 +1489,11 @@ DefWindowProcW(HWND hWnd,
|
|||
if (WindowTextAtom == 0 ||
|
||||
(WindowText = GetPropW(hWnd, WindowTextAtom)) == NULL)
|
||||
{
|
||||
if (wParam > 1)
|
||||
{
|
||||
((PWSTR)lParam) = '\0';
|
||||
}
|
||||
return (0);
|
||||
if (wParam > 1)
|
||||
{
|
||||
*((PWSTR)lParam) = '\0';
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
wcsncpy((PWSTR)lParam, WindowText, wParam);
|
||||
return (min(wParam, wcslen(WindowText)));
|
||||
|
|
Loading…
Reference in a new issue