From 7ec9caab9293a06129cdeceda40db94f0b37eb9e Mon Sep 17 00:00:00 2001 From: klu2 Date: Wed, 24 Jun 2009 08:41:14 +0000 Subject: Fix the potential issue that using integrate as BOOLEAN value in judgment. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8648 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IntelFrameworkModulePkg/Bus/Isa') diff --git a/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c b/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c index 25aadfe481..098d29f6e0 100644 --- a/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c +++ b/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c @@ -551,7 +551,7 @@ KbdControllerDriverStop ( // // Free other resources // - if ((ConsoleIn->ConIn).WaitForKey) { + if ((ConsoleIn->ConIn).WaitForKey != NULL) { gBS->CloseEvent ((ConsoleIn->ConIn).WaitForKey); (ConsoleIn->ConIn).WaitForKey = NULL; } -- cgit v1.2.3