Added management and allocation of the PERQUEUEDATA structure.

diff --git a/windows/message.c b/windows/message.c
index 5b4586c..a783e8f 100644
--- a/windows/message.c
+++ b/windows/message.c
@@ -122,7 +122,8 @@
     else 
     {
 	pWnd = WIN_FindWndPtr(hWnd);
-	ht = EVENT_GetCaptureInfo();
+        if (queue)
+            ht = PERQDATA_GetCaptureInfo( queue->pQData );
     }
 
 	/* stop if not the right queue */