mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Fix test for WindowTextAtom
svn path=/trunk/; revision=5603
This commit is contained in:
parent
1498f053e6
commit
93b6368a9f
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: defwnd.c,v 1.68 2003/08/15 21:56:48 gvg Exp $
|
||||
/* $Id: defwnd.c,v 1.69 2003/08/16 20:16:50 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS user32.dll
|
||||
|
@ -1937,7 +1937,7 @@ DefWindowProcA(HWND hWnd,
|
|||
if (0 == WindowTextAtom)
|
||||
{
|
||||
WindowTextAtom =
|
||||
(LPSTR)(DWORD)GlobalAddAtomA("USER32!WindowTextAtomW");
|
||||
(LPSTR)(DWORD)GlobalAddAtomA("USER32!WindowTextAtomA");
|
||||
}
|
||||
if (WindowTextAtom != 0 &&
|
||||
(WindowText = GetPropA(hWnd, WindowTextAtom)) == NULL)
|
||||
|
@ -2042,7 +2042,7 @@ DefWindowProcW(HWND hWnd,
|
|||
|
||||
case WM_SETTEXT:
|
||||
{
|
||||
if (WindowTextAtom != 0)
|
||||
if (WindowTextAtom == 0)
|
||||
{
|
||||
WindowTextAtom =
|
||||
(LPWSTR)(DWORD)GlobalAddAtomW(L"USER32!WindowTextAtomW");
|
||||
|
|
Loading…
Reference in a new issue