patch by Jonathon Wilson - fix bug in SetClassLong and SetWindowLong
authorRoyce Mitchell III <royce3@ev1.net>
Thu, 14 Aug 2003 01:38:19 +0000 (01:38 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Thu, 14 Aug 2003 01:38:19 +0000 (01:38 +0000)
svn path=/trunk/; revision=5565

reactos/subsys/win32k/ntuser/class.c
reactos/subsys/win32k/ntuser/window.c

index 7060886..3572bcd 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: class.c,v 1.29 2003/08/13 20:24:05 chorns Exp $
+/* $Id: class.c,v 1.30 2003/08/14 01:38:19 royce Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -502,11 +502,13 @@ W32kSetClassLong(PWINDOW_OBJECT WindowObject, ULONG Offset, LONG dwNewLong, BOOL
          {
                WindowObject->Class->lpfnWndProcA = (WNDPROC)dwNewLong;
                WindowObject->Class->lpfnWndProcW = (WNDPROC)dwNewLong+0x80000000;
+               WindowObject->Class->Unicode = FALSE;
          }
          else
          {
                WindowObject->Class->lpfnWndProcW = (WNDPROC)dwNewLong;
                WindowObject->Class->lpfnWndProcA = (WNDPROC)dwNewLong+0x80000000;
+               WindowObject->Class->Unicode = TRUE;
          }
       break;
     }
index 5e72641..6859da4 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: window.c,v 1.90 2003/08/13 20:24:05 chorns Exp $
+/* $Id: window.c,v 1.91 2003/08/14 01:38:19 royce Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -1936,12 +1936,14 @@ NtUserSetWindowLong(HWND hWnd, DWORD Index, LONG NewValue, BOOL Ansi)
            OldValue = (LONG) WindowObject->WndProcA;
            WindowObject->WndProcA = (WNDPROC) NewValue;
                WindowObject->WndProcW = (WNDPROC) NewValue+0x80000000;
+               WindowObject->Unicode = FALSE;
          }
          else
          {
            OldValue = (LONG) WindowObject->WndProcW;
            WindowObject->WndProcW = (WNDPROC) NewValue;
                WindowObject->WndProcA = (WNDPROC) NewValue+0x80000000;
+               WindowObject->Unicode = TRUE;
          }
          break;