- [Win32k] If Proc is null, use original one and perform processing.
authorJames Tabor <james.tabor@reactos.org>
Sun, 6 Dec 2009 19:22:29 +0000 (19:22 +0000)
committerJames Tabor <james.tabor@reactos.org>
Sun, 6 Dec 2009 19:22:29 +0000 (19:22 +0000)
svn path=/trunk/; revision=44443

reactos/subsystems/win32/win32k/ntuser/class.c
reactos/subsystems/win32/win32k/ntuser/window.c

index 5e8f074..03e4f5d 100644 (file)
@@ -385,6 +385,8 @@ IntSetClassWndProc(IN OUT PCLS Class,
       Class->Unicode = !Ansi;
    }
 
+   if (!WndProc) WndProc = Class->lpfnWndProc;
+
    chWndProc = WndProc;
 
    // Check if CallProc handle and retrieve previous call proc address and set.
index 641db2c..e561b70 100644 (file)
@@ -663,6 +663,8 @@ IntSetWindowProc(PWND pWnd,
       if (pWnd->state & WNDS_SERVERSIDEWINDOWPROC)
          pWnd->state &= ~WNDS_SERVERSIDEWINDOWPROC;
 
+      if (!NewWndProc) NewWndProc = pWnd->lpfnWndProc;
+
       if (Class->fnid <= FNID_GHOST && Class->fnid >= FNID_BUTTON)
       {
          if (Ansi)