From 80448f6c1aed17ee0fbfa79bab7e7b8eeb2eb084 Mon Sep 17 00:00:00 2001 From: ydong10 Date: Mon, 20 Sep 2010 03:20:56 +0000 Subject: Refine some code to make code run safely. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10893 6f19259b-4bc3-4df7-8a09-765794883524 --- OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430GraphicsOutput.c | 1 + 1 file changed, 1 insertion(+) (limited to 'OptionRomPkg/CirrusLogic5430Dxe') diff --git a/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430GraphicsOutput.c b/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430GraphicsOutput.c index 8ba2f98..d4b3eaf 100644 --- a/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430GraphicsOutput.c +++ b/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430GraphicsOutput.c @@ -523,6 +523,7 @@ CirrusLogic5430GraphicsOutputConstructor ( // Initialize the hardware // GraphicsOutput->SetMode (GraphicsOutput, 0); + ASSERT (Private->GraphicsOutput.Mode->Mode < CIRRUS_LOGIC_5430_MODE_COUNT); DrawLogo ( Private, Private->ModeData[Private->GraphicsOutput.Mode->Mode].HorizontalResolution, -- cgit v1.1