http://bugs.winehq.org/show_bug.cgi?id=8229
------- Additional Comments From lupien@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.