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:
@ -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
|
||||
|
Reference in New Issue
Block a user