Check the handle for font package before remove it.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4667 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12
2008-02-04 03:18:43 +00:00
parent 39d262c4ce
commit 38c0d70af8

View File

@ -618,12 +618,10 @@ GraphicsConsoleControllerDriverStop (
//
// Remove the font pack
//
#if 1
HiiLibRemovePackages (Private->HiiHandle);
mFirstAccessFlag = TRUE;
#else
mHii->RemovePack (mHii, Private->HiiHandle);
#endif
if (Private->HiiHandle != NULL) {
HiiLibRemovePackages (Private->HiiHandle);
mFirstAccessFlag = TRUE;
}
//
// Free our instance data