int31.c fix an error in DPMI_xrealloc
EA Durbin
ead1234 at hotmail.com
Tue May 8 16:46:01 CDT 2007
Patch by Christian Lupien
_________________________________________________________________
Like the way Microsoft Office Outlook works? Youll love Windows Live
Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_outlook_0507
-------------- next part --------------
>From 8253168687dd8a993603928f2dd768c79305a20d Mon Sep 17 00:00:00 2001
From: EA Durbin <ead1234 at hotmail.com>
Date: Tue, 8 May 2007 15:47:51 -0500
Subject: int31.c fix an error in DPMI_xrealloc, by Christian Lupien
---
dlls/winedos/int31.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winedos/int31.c b/dlls/winedos/int31.c
index 4bf16a9..63c23dc 100644
--- a/dlls/winedos/int31.c
+++ b/dlls/winedos/int31.c
@@ -254,7 +254,6 @@ static LPVOID DPMI_xrealloc( LPVOID ptr, DWORD newsize )
MEMORY_BASIC_INFORMATION mbi;
LPVOID newptr;
- newptr = DPMI_xalloc( newsize );
if (ptr)
{
if (!VirtualQuery(ptr,&mbi,sizeof(mbi)))
@@ -275,6 +274,7 @@ static LPVOID DPMI_xrealloc( LPVOID ptr, DWORD newsize )
if (newsize <= mbi.RegionSize)
return ptr;
+ newptr = DPMI_xalloc( newsize );
memcpy( newptr, ptr, mbi.RegionSize );
DPMI_xfree( ptr );
}
--
1.4.4.2
More information about the wine-patches
mailing list