summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-19 05:49:56 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-19 05:49:56 +0000
commit695f7e9856bc478054e317c8b9b1e12e6cbf0693 (patch)
treee0cd1b94a17a15a703139f5d57ec16aed4bd029d /MdeModulePkg
parent8541adab27901906118876f1acd3555666677ff9 (diff)
downloadedk2-platforms-695f7e9856bc478054e317c8b9b1e12e6cbf0693.tar.xz
add some error check and return.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4912 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Library/GraphicsLib/Graphics.c4
-rw-r--r--MdeModulePkg/Universal/BdsDxe/MemoryTest.c4
-rw-r--r--MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c3
3 files changed, 11 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/GraphicsLib/Graphics.c b/MdeModulePkg/Library/GraphicsLib/Graphics.c
index e944217028..cccbc6b06f 100644
--- a/MdeModulePkg/Library/GraphicsLib/Graphics.c
+++ b/MdeModulePkg/Library/GraphicsLib/Graphics.c
@@ -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;
}
}
diff --git a/MdeModulePkg/Universal/BdsDxe/MemoryTest.c b/MdeModulePkg/Universal/BdsDxe/MemoryTest.c
index 002b8302c3..fe167e0199 100644
--- a/MdeModulePkg/Universal/BdsDxe/MemoryTest.c
+++ b/MdeModulePkg/Universal/BdsDxe/MemoryTest.c
@@ -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;
}
}
diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
index 48c5c1bbed..2cf2f3e64d 100644
--- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
+++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
@@ -424,6 +424,9 @@ GraphicsConsoleControllerDriverStart (
goto Error;
}
}
+ } else {
+ Status = EFI_UNSUPPORTED;
+ goto Error;
}
}