aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Hensl <jara@hensl.cz>2024-09-22 16:58:08 +0200
committerJaroslav Hensl <jara@hensl.cz>2024-09-22 16:58:08 +0200
commitc69714384db657e4e1215fad53678c77532d236d (patch)
treec3a847cfe1e7b675139bb88a648fe60ef194f54f
parentce109028d616c331e7a722115205dfda964bb1c1 (diff)
downloadvmdisp9x-c69714384db657e4e1215fad53678c77532d236d.tar.gz
fix freezing on shutdown
-rw-r--r--makefile2
-rw-r--r--vxd_svga.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/makefile b/makefile
index 55cd126..65ed1ce 100644
--- a/makefile
+++ b/makefile
@@ -12,7 +12,7 @@ OBJS += &
INCS = -I$(%WATCOM)\h\win -Iddk -Ivmware
-VER_BUILD = 81
+VER_BUILD = 82
FLAGS = -DDRV_VER_BUILD=$(VER_BUILD)
diff --git a/vxd_svga.c b/vxd_svga.c
index 1c0af6b..1ab2abf 100644
--- a/vxd_svga.c
+++ b/vxd_svga.c
@@ -1584,11 +1584,14 @@ static inline void map_reset(DWORD *bitmap, DWORD id)
void SVGA_ProcessCleanup(DWORD pid)
{
DWORD id;
-
/* just for safety */
if(pid == 0)
return;
+ /* some process are terminated when SVGA is disabled, clean not possible */
+ if(!svga_saved_state.enabled)
+ return;
+
Begin_Critical_Section(0);
if(svga_db != NULL)
{