diff options
author | Jaroslav Hensl <jara@hensl.cz> | 2023-07-12 17:11:08 +0200 |
---|---|---|
committer | Jaroslav Hensl <jara@hensl.cz> | 2023-07-12 17:11:08 +0200 |
commit | 030cb4e96b4f77231454c3209ae04c1f42ca837c (patch) | |
tree | 0716a5232e390831dc67a91754ab83fd60982c1e /init.c | |
parent | 47b0c297d5719a9a3e72c4199f99ba6d0c793b68 (diff) | |
download | vmdisp9x-030cb4e96b4f77231454c3209ae04c1f42ca837c.tar.gz |
Fix: race condition - FIFO access, clear screenv1.2023.0.11
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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
|