[Bug 30826] Gigasoft's ProEssentials demo crashes on startup

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jun 2 21:42:55 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=30826

--- Comment #9 from Dan Kegel <dank at kegel.com> 2012-06-02 21:42:55 CDT ---
Looks like get_bitmap_argb() tries to free something that wasn't allocated on
the heap.  This patch gets rid of one valgrind error, but doesn't solve the
crash:

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 720a49c..e980b08 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -847,7 +847,7 @@ static unsigned long *get_bitmap_argb( HDC hdc, HBITMAP
color, HBITMAP mask, uns
                 if (!((mask_bits[i * width_bytes + j / 8] << (j % 8)) & 0x80))
*ptr |= 0xff000000;
         HeapFree( GetProcessHeap(), 0, mask_bits );
     }
-    HeapFree( GetProcessHeap(), 0, info );
+    //HeapFree( GetProcessHeap(), 0, info );

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list