Crash in MSG_PeekHardwareMsg

Alexandre Julliard julliard at winehq.com
Mon May 14 14:19:34 CDT 2001


Rein Klazes <rklazes at xs4all.nl> writes:

> Dutch tax 2000 declaration setup program crashes at exactly the same
> point. Cause of this seems to be some memory allocation/corruption
> problem. At some point the memory used by the sysMsgQueue, is
> allocated again by some HeapAlloc() and happily used by its requester.

Does this help?

Index: windows/queue.c
===================================================================
RCS file: /opt/cvs-commit/wine/windows/queue.c,v
retrieving revision 1.70
diff -u -r1.70 queue.c
--- windows/queue.c	2001/04/04 00:19:55	1.70
+++ windows/queue.c	2001/05/14 18:55:22
@@ -598,7 +598,7 @@
     /* Note: We dont need perQ data for the system message queue */
     if (!(hmemSysMsgQueue = QUEUE_CreateMsgQueue( FALSE )))
         return FALSE;
-    
+    FarSetOwner16( hmemSysMsgQueue, 0 );
     sysMsgQueue = (MESSAGEQUEUE *) GlobalLock16( hmemSysMsgQueue );
     return TRUE;
 }

-- 
Alexandre Julliard
julliard at winehq.com




More information about the wine-devel mailing list