diff --git a/reactos/subsystems/mvdm/ntvdm/ntvdm.c b/reactos/subsystems/mvdm/ntvdm/ntvdm.c index 737b10e1f4a..db06f5af0f8 100644 --- a/reactos/subsystems/mvdm/ntvdm/ntvdm.c +++ b/reactos/subsystems/mvdm/ntvdm/ntvdm.c @@ -285,7 +285,14 @@ VdmShutdown(BOOLEAN Immediate) * Immediate = TRUE: Immediate shutdown; * FALSE: Delayed shutdown. */ - BOOLEAN MustShutdown; + static BOOLEAN MustShutdown = FALSE; + + /* If a shutdown is ongoing, just return */ + if (MustShutdown) + { + DPRINT1("Shutdown is ongoing...\n"); + return; + } /* First notify DOS to see whether we can shut down now */ MustShutdown = DosShutdown(Immediate);