[Bug 8229] callbacks from win16 extended program that allocate linear memory screw up pointers

Wine Bugs wine-bugs at winehq.org
Mon Apr 30 01:16:53 CDT 2007


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





------- Additional Comments From lupien at physique.usherbrooke.ca  2007-30-04 01:16 -------
Created an attachment (id=6030)
 --> (http://bugs.winehq.org/attachment.cgi?id=6030&action=view)
patch to dlls/winedos/int31.c to fix an error in DPMI_xrealloc

DPMI_xrealloc() function of dlls/winedos/int31.c reserved the memory before
doing the test and if they failed it would not release it. So I moved the
memory allocation after the tests. It will only behave differently if it is
called with a NULL handle (ptr). If that is a problem, an else statement can be
added when ptr is NULL.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list