aboutsummaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorJaroslav Hensl <jara@hensl.cz>2023-07-12 17:11:08 +0200
committerJaroslav Hensl <jara@hensl.cz>2023-07-12 17:11:08 +0200
commit030cb4e96b4f77231454c3209ae04c1f42ca837c (patch)
tree0716a5232e390831dc67a91754ab83fd60982c1e /init.c
parent47b0c297d5719a9a3e72c4199f99ba6d0c793b68 (diff)
downloadvmdisp9x-030cb4e96b4f77231454c3209ae04c1f42ca837c.tar.gz
Fix: race condition - FIFO access, clear screenv1.2023.0.11
Diffstat (limited to 'init.c')
-rw-r--r--init.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/init.c b/init.c
index 562f734..de29398 100644
--- a/init.c
+++ b/init.c
@@ -32,6 +32,11 @@ THE SOFTWARE.
#include "minidrv.h"
#include <configmg.h>
+#ifdef SVGA
+#include <stdint.h>
+#include "control_vxd.h"
+#endif
+
/* GlobalSmartPageLock is a semi-undocumented function. Not officially
* documented but described in KB Article Q180586. */
UINT WINAPI GlobalSmartPageLock( HGLOBAL hglb );
@@ -330,6 +335,17 @@ UINT FAR DriverInit( UINT cbHeap, UINT hModule, LPSTR lpCmdLine )
/* Read the display configuration before doing anything else. */
ReadDisplayConfig();
+#ifdef SVGA
+ /* connect to 32bit RING-0 driver */
+ if(!VXD_load())
+ {
+ dbg_printf("VXD load failure!\n");
+ return 0;
+ }
+
+ dbg_printf("VXD load success\n");
+#endif
+
return( 1 ); /* Success. */
}
#endif