mirror of https://github.com/acidanthera/audk.git
The CurrentNumberOfxxxxx should be based on the device going away, and not the next (or empty) device in the list.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11000 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
785b5f5a50
commit
5469967137
|
@ -3133,14 +3133,14 @@ ConSplitterTextOutDeleteDevice (
|
|||
TextOutList = Private->TextOutList;
|
||||
while (Index >= 0) {
|
||||
if (TextOutList->TextOut == TextOut) {
|
||||
CopyMem (TextOutList, TextOutList + 1, sizeof (TEXT_OUT_AND_GOP_DATA) * Index);
|
||||
CurrentNumOfConsoles--;
|
||||
if (TextOutList->UgaDraw != NULL && FeaturePcdGet (PcdUgaConsumeSupport)) {
|
||||
Private->CurrentNumberOfUgaDraw--;
|
||||
}
|
||||
if (TextOutList->GraphicsOutput != NULL) {
|
||||
Private->CurrentNumberOfGraphicsOutput--;
|
||||
}
|
||||
CopyMem (TextOutList, TextOutList + 1, sizeof (TEXT_OUT_AND_GOP_DATA) * Index);
|
||||
CurrentNumOfConsoles--;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue