Initializing Dosvm for direct port access

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Thu Jun 21 03:42:21 CDT 2001


Hallo Ove,

is something like appended patch right to get direct port access working for
a win95 program? At least my dongle protected program (spde) doesn't crash
any more and recognizes the license.

Bye

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
hertz:/spare/bon/wine-clean> cvs -d $CVSROOT diff -uw -7 wine/msdos/ioports.c
Index: wine/msdos/ioports.c
===================================================================
RCS file: /home/wine/wine/msdos/ioports.c,v
retrieving revision 1.24
diff -u -w -7 -r1.24 ioports.c
--- wine/msdos/ioports.c        2001/05/09 17:31:35     1.24
+++ wine/msdos/ioports.c        2001/06/21 08:23:57
@@ -227,14 +227,15 @@
 
 static void IO_port_init(void)
 {
        char temp[1024];
 
         do_direct_port_access = 0;
        /* Can we do that? */
+       DPMI_LoadDosSystem();
        if (!iopl(3)) {
                iopl(0);
 
                PROFILE_GetWineIniString( "ports", "read", "*",
                                         temp, sizeof(temp) );
                do_IO_port_init_read_or_write(temp, IO_READ);
                PROFILE_GetWineIniString( "ports", "write", "*",




More information about the wine-devel mailing list