From 3ac9edfd997e2d0a95c141db934ce97bd29d601a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Fri, 26 Sep 2014 22:39:21 +0000 Subject: [PATCH] [NTVDM]: Improve diagnostics. svn path=/trunk/; revision=64317 --- reactos/subsystems/ntvdm/hardware/vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/ntvdm/hardware/vga.c b/reactos/subsystems/ntvdm/hardware/vga.c index 3dc376d8517..4b96de0963b 100644 --- a/reactos/subsystems/ntvdm/hardware/vga.c +++ b/reactos/subsystems/ntvdm/hardware/vga.c @@ -1117,7 +1117,7 @@ static VOID VgaChangeMode(VOID) /* Enter new text mode */ if (!VgaEnterTextMode(&Resolution)) { - DisplayMessage(L"An unexpected VGA error occurred while switching into text mode."); + DisplayMessage(L"An unexpected VGA error occurred while switching into text mode. Error: %u", GetLastError()); EmulatorTerminate(); return; } @@ -1127,7 +1127,7 @@ static VOID VgaChangeMode(VOID) /* Enter graphics mode */ if (!VgaEnterGraphicsMode(&Resolution)) { - DisplayMessage(L"An unexpected VGA error occurred while switching into graphics mode."); + DisplayMessage(L"An unexpected VGA error occurred while switching into graphics mode. Error: %u", GetLastError()); EmulatorTerminate(); return; }