CVS: winex/win32 console.c,1.8,1.9
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/win32 console.c,1.8,1.9Update of /var/lib/cvsd/cvsroot/winex/win32
In directory agravaine:/tmp/cvs-serv30755/win32
Modified Files:
console.c
Log Message:
Provide a facility for the user driver to provide its own implementation of
MessageBox. This allows us to use platform native dialogs for simple alerts
in some cases.
Also, sped up copy protection on some platforms by avoiding starting a
console.
Index: console.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/win32/console.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- console.c 16 Mar 2004 20:16:04 -0000 1.8
+++ console.c 30 Mar 2007 15:51:50 -0000 1.9
@@ -175,6 +175,9 @@
*/
BOOL WINAPI AllocConsole(void)
{
+/* We don't support the console on the Mac currently - avoiding this
+ check speeds up CD checking with some copy protection systems */
+#ifndef __APPLE__
HANDLE handle_in = INVALID_HANDLE_VALUE;
HANDLE handle_out = INVALID_HANDLE_VALUE;
HANDLE handle_err = INVALID_HANDLE_VALUE;
@@ -235,6 +238,7 @@
if (handle_out != INVALID_HANDLE_VALUE) CloseHandle(handle_out);
if (handle_err != INVALID_HANDLE_VALUE) CloseHandle(handle_err);
FreeConsole();
+#endif
return FALSE;
}