add some error check and return.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4912 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2008-03-19 05:49:56 +00:00
parent 8541adab27
commit 695f7e9856
4 changed files with 13 additions and 0 deletions

View File

@ -415,6 +415,8 @@ Returns:
if (EFI_ERROR (Status)) {
return EFI_UNSUPPORTED;
}
} else {
return EFI_UNSUPPORTED;
}
Instance = 0;

View File

@ -470,6 +470,8 @@ Returns:
if (EFI_ERROR (Status)) {
return EFI_UNSUPPORTED;
}
} else {
return EFI_UNSUPPORTED;
}
Instance = 0;
@ -607,6 +609,8 @@ Returns:
Height,
Width * sizeof (EFI_UGA_PIXEL)
);
} else {
Status = EFI_UNSUPPORTED;
}
}

View File

@ -152,6 +152,8 @@ Returns:
SizeOfY - (PosY - GLYPH_HEIGHT - 1),
SizeOfX * sizeof (EFI_UGA_PIXEL)
);
} else {
return EFI_UNSUPPORTED;
}
}
//
@ -185,6 +187,8 @@ Returns:
BlockHeight,
(BlockWidth) * sizeof (EFI_UGA_PIXEL)
);
} else {
return EFI_UNSUPPORTED;
}
}

View File

@ -424,6 +424,9 @@ GraphicsConsoleControllerDriverStart (
goto Error;
}
}
} else {
Status = EFI_UNSUPPORTED;
goto Error;
}
}