Fixed memory resize function, which in a specific case returned number of paragraphs instead of number of bytes as it was supposed to. This fixes the good old game "Outrun", which now boots correctly.

Peter Dons Tychsen donpedro at tdcadsl.dk
Sun Nov 23 17:22:35 CST 2008


---
 dlls/winedos/dosmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winedos/dosmem.c b/dlls/winedos/dosmem.c
index 76bf10c..d453da3 100644
--- a/dlls/winedos/dosmem.c
+++ b/dlls/winedos/dosmem.c
@@ -368,7 +368,7 @@ UINT DOSMEM_ResizeBlock(void *ptr, UINT size, BOOL exact)
 
     /* resize needed? */
     if (mcb->size == size)
-        return size;
+        return size << 4;
 
     /* collapse free blocks */
     DOSMEM_Collapse( mcb );    
-- 
1.5.4.3


--=-C36Z6U2CVfFy3X9lZ22W--




More information about the wine-patches mailing list