PATCH: Fix GET FUNCTIONALITY/STATE INFORMATION

Christian COSTA titan.costa at wanadoo.fr
Thu Apr 18 13:34:43 CDT 2002


Changelog :
        dlls/winedos/int10.c : GET FUNCTIONALITY/STATE INFORMATION
        The input parameter ES:DI is a buffer where bios information
        (all the VIDEOSTATE struct) must be copied to.

Christian Costa   titan.costa at wanadoo.fr
-------------- next part --------------
Index: int10.c
===================================================================
RCS file: /home/wine/wine/dlls/winedos/int10.c,v
retrieving revision 1.8
diff -u -r1.8 int10.c
--- int10.c	17 Apr 2002 16:50:42 -0000	1.8
+++ int10.c	18 Apr 2002 18:22:12 -0000
@@ -717,15 +717,13 @@
     break;
 
     case 0x1b: /* FUNCTIONALITY/STATE INFORMATION */
-        FIXME("Get functionality/state information - partially implemented\n");
+        TRACE("Get functionality/state information\n");
         if (BX_reg(context) == 0x0)
         {
           AL_reg(context) = 0x1b;
-          if (ISV86(context)) /* real */
-            context->SegEs = 0xf000;
-          else
-            context->SegEs = DOSMEM_BiosSysSeg;
-          BX_reg(context) = 0xe000;
+          /* Copy state information structure to ES:DI */
+          memcpy(CTX_SEG_OFF_TO_LIN(context,context->SegEs,context->Edi),
+              DOSMEM_BiosSys()+0xe010,sizeof(VIDEOSTATE));
         }
         break;
 


More information about the wine-patches mailing list