summaryrefslogtreecommitdiff
path: root/ShellPkg/Application
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-17 20:09:48 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-17 20:09:48 +0000
commite97233217ed6d37d7bb7fefb0ff0821515a23b48 (patch)
treef7701934bb62d5ba79025c295b098f2eee5abbc1 /ShellPkg/Application
parenta48ea694577d853c9e38500e0d0ce3ab65f17d90 (diff)
downloadedk2-platforms-e97233217ed6d37d7bb7fefb0ff0821515a23b48.tar.xz
ShellPkg: Fix several GCC compiler warnings
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10890 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application')
-rw-r--r--ShellPkg/Application/Shell/ShellProtocol.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ShellPkg/Application/Shell/ShellProtocol.c b/ShellPkg/Application/Shell/ShellProtocol.c
index 214693f2ae..27488ab62e 100644
--- a/ShellPkg/Application/Shell/ShellProtocol.c
+++ b/ShellPkg/Application/Shell/ShellProtocol.c
@@ -488,7 +488,9 @@ EfiShellGetDevicePathFromFilePath(
NewPath = AllocateZeroPool(Size);
ASSERT(NewPath != NULL);
StrCpy(NewPath, Cwd);
- if (NewPath[StrLen(NewPath)-1] == Path[0] == (CHAR16)L'\\') {
+ if ((NewPath[0] == (CHAR16)L'\\') &&
+ (NewPath[StrLen(NewPath)-1] == (CHAR16)L'\\')
+ ) {
((CHAR16*)NewPath)[StrLen(NewPath)-1] = CHAR_NULL;
}
StrCat(NewPath, Path);
@@ -2958,7 +2960,7 @@ EFI_SHELL_PROTOCOL mShellProtocol = {
This must be removed via calling CleanUpShellProtocol().
- @param[in,out] NewShell The pointer to the pointer to the structure
+ @param[in,out] NewShell The pointer to the pointer to the structure
to install.
@retval EFI_SUCCESS The operation was successful.
@@ -3071,7 +3073,7 @@ CreatePopulateInstallShellProtocol (
}
/**
- Opposite of CreatePopulateInstallShellProtocol.
+ Opposite of CreatePopulateInstallShellProtocol.
Free all memory and restore the system to the state it was in before calling
CreatePopulateInstallShellProtocol.