int31.c improve trace debug
EA Durbin
ead1234 at hotmail.com
Tue May 8 16:47:07 CDT 2007
Patch by Christian Lupien
_________________________________________________________________
PC Magazines 2007 editors choice for best Web mailaward-winning Windows
Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507
-------------- next part --------------
>From 944185617b4a9bbea8d7ce2a19d0086bfab731f8 Mon Sep 17 00:00:00 2001
From: EA Durbin <ead1234 at hotmail.com>
Date: Tue, 8 May 2007 15:49:21 -0500
Subject: int31.c improve trace debug, by Christian Lupien
---
dlls/winedos/int31.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/winedos/int31.c b/dlls/winedos/int31.c
index 63c23dc..3529c38 100644
--- a/dlls/winedos/int31.c
+++ b/dlls/winedos/int31.c
@@ -928,7 +928,7 @@ void WINAPI DOSVM_Int31Handler( CONTEXT86 *context )
break;
case 0x0003: /* Get next selector increment */
- TRACE("get selector increment (__AHINCR)\n");
+ TRACE("get selector increment (__AHINCR),0x%08x\n",__AHINCR);
context->Eax = __AHINCR;
break;
@@ -956,6 +956,7 @@ void WINAPI DOSVM_Int31Handler( CONTEXT86 *context )
else
{
void *base = wine_ldt_get_base(&entry);
+ TRACE( "get selector base address (0x%04x=>0x%08x)\n", sel,
(DWORD)base);
SET_CX( context, HIWORD(base) );
SET_DX( context, LOWORD(base) );
}
@@ -1254,6 +1255,9 @@ void WINAPI DOSVM_Int31Handler( CONTEXT86 *context )
TRACE( "allocate memory block (%d bytes)\n", size );
ptr = (BYTE *)DPMI_xalloc( size );
+
+ TRACE( "allocated memory @ 0x%08x\n", (DWORD)ptr );
+
if (!ptr)
{
SET_AX( context, 0x8012 ); /* linear memory not available
*/
@@ -1286,6 +1290,9 @@ void WINAPI DOSVM_Int31Handler( CONTEXT86 *context )
TRACE( "resize memory block (0x%08x, %d bytes)\n", handle, size
);
ptr = (BYTE *)DPMI_xrealloc( (void *)handle, size );
+
+ TRACE( "resized memory block (0x%08x)\n", (DWORD)ptr );
+
if (!ptr)
{
SET_AX( context, 0x8012 ); /* linear memory not available
*/
--
1.4.4.2
More information about the wine-patches
mailing list