CVS: winex/dlls/winedos vga.c,1.4,1.5

[email protected]
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/dlls/winedos vga.c,1.4,1.5Update of /var/lib/cvsd/cvsroot/winex/dlls/winedos
In directory agravaine:/tmp/cvs-serv30413/dlls/winedos

Modified Files:
	vga.c 
Log Message:
Prevent load error if winedos module not supported on platform


Index: vga.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/winedos/vga.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- vga.c	18 Feb 2004 22:27:44 -0000	1.4
+++ vga.c	30 Mar 2007 15:50:08 -0000	1.5
@@ -296,7 +296,10 @@
 
     par.Depth = (Depth < 8) ? 8 : Depth;
 
+#ifdef MZ_SUPPORTED
     MZ_RunInThread(VGA_DoSetMode, (ULONG_PTR)&par);
+#endif
+
     return par.ret;
 }
 
@@ -312,7 +315,9 @@
 
 void VGA_Exit(void)
 {
+#ifdef MZ_SUPPORTED
     if (lpddraw) MZ_RunInThread(VGA_DoExit, 0);
+#endif
 }
 
 void VGA_SetPalette(PALETTEENTRY*pal,int start,int len)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.