Release 960616

Sun Jun 16 16:51:31 1996  Alexandre Julliard  <julliard@lrc.epfl.ch>

	* [memory/heap.c]
	Fixed bug in HeapRealloc (thanks to Bruce Milner).

	* [misc/wsprintf.c]
	Fixed argument size for %c format in wsprintf16().

	* [objects/dc.c]
	Don't free hFirstBitmap for saved DCs.

	* [windows/event.c]
	Added timer handling in EVENT_WaitXEvent().

	* [windows/message.c]
	In MSG_TranslateMouseMsg and MSG_TranslateKbdMsg, check if the
	event is for the current task; if not, wake the other task.

	* [windows/queue.c] [include/queue.h]
	Added 'self' handle in queue structure.

	* [windows/timer.c]
	Added TIMER_ExpireTimers() function to mark expired timers and
	wake up the corresponding tasks.

Thu Jun 13 01:46:33 EDT 1996  William Magro <wmagro@tc.cornell.edu>

	* [windows/mapping.c]
	First point in list was mapped multiple times in DPtoLP and
 	LPtoDP.  Other points were not mapped.

Wed Jun 12 18:08:45 1996  Alex Korobka <alex@phm30.pharm.sunysb.edu>

	* [misc/shell.c]
	Some fixes for ExtractIcon function family.

	* [documentation/user_module]
	Chapter about windowing and messaging subsystems.
diff --git a/windows/win.c b/windows/win.c
index 8c23889..c6e5188 100644
--- a/windows/win.c
+++ b/windows/win.c
@@ -347,7 +347,7 @@
     if (wndPtr->hSysMenu) DestroyMenu( wndPtr->hSysMenu );
     if (wndPtr->window) XDestroyWindow( display, wndPtr->window );
     if (wndPtr->class->style & CS_OWNDC) DCE_FreeDCE( wndPtr->hdce );
-    WIN_SetWndProc( wndPtr, (WNDPROC16)0, WIN_PROC_16 );
+    WIN_SetWndProc( wndPtr, (HANDLE32)0, WIN_PROC_16 );
     wndPtr->class->cWindows--;
     USER_HEAP_FREE( hwnd );
 }
@@ -426,7 +426,7 @@
     pWndDesktop->hProp             = 0;
     pWndDesktop->userdata          = 0;
 
-    EVENT_RegisterWindow( pWndDesktop->window, hwndDesktop );
+    EVENT_RegisterWindow( pWndDesktop );
     SendMessage32A( hwndDesktop, WM_NCCREATE, 0, 0 );
     if ((hdc = GetDC( hwndDesktop )) != 0)
     {
@@ -628,7 +628,7 @@
             Window win = WIN_GetXWindow( cs->hwndParent );
             if (win) XSetTransientForHint( display, wndPtr->window, win );
 	}
-        EVENT_RegisterWindow( wndPtr->window, hwnd );
+        EVENT_RegisterWindow( wndPtr );
     }
 
     /* Set the window menu */