diff options
author | Jaroslav Hensl <jara@hensl.cz> | 2024-09-22 16:58:08 +0200 |
---|---|---|
committer | Jaroslav Hensl <jara@hensl.cz> | 2024-09-22 16:58:08 +0200 |
commit | c69714384db657e4e1215fad53678c77532d236d (patch) | |
tree | c3a847cfe1e7b675139bb88a648fe60ef194f54f | |
parent | ce109028d616c331e7a722115205dfda964bb1c1 (diff) | |
download | vmdisp9x-c69714384db657e4e1215fad53678c77532d236d.tar.gz |
fix freezing on shutdown
-rw-r--r-- | makefile | 2 | ||||
-rw-r--r-- | vxd_svga.c | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -12,7 +12,7 @@ OBJS += & INCS = -I$(%WATCOM)\h\win -Iddk -Ivmware
-VER_BUILD = 81
+VER_BUILD = 82
FLAGS = -DDRV_VER_BUILD=$(VER_BUILD)
@@ -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)
{
|