summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-30 17:31:23 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-30 17:31:23 +0000
commit479f85bb721765fefc43bb98bff999e2b3bc779a (patch)
tree96cc45fc1af1f4ac8c2a18e0bf1ce66933dbb1a5 /ShellPkg
parentf9aefb6a06acc93ac70c233a2e0552db9b3a68ce (diff)
downloadedk2-platforms-479f85bb721765fefc43bb98bff999e2b3bc779a.tar.xz
ShellPkg: add more parenthesis to bcfg command.
signed-off-by: jcarsey reviewed-by: mlmitchel git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12963 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c4
-rw-r--r--ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c
index 10ce33eee9..fed38564e9 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c
@@ -929,7 +929,7 @@ BcfgAddOptDebug1(
//
ASSERT(FileName == NULL || Data == NULL);
- if (ShellStatus == SHELL_SUCCESS && FileName != NULL || Data != NULL) {
+ if (ShellStatus == SHELL_SUCCESS && (FileName != NULL || Data != NULL)) {
if (FileName != NULL) {
//
// Open the file and populate the data buffer.
@@ -948,7 +948,7 @@ BcfgAddOptDebug1(
ShellStatus = SHELL_OUT_OF_RESOURCES;
}
if (ShellStatus == SHELL_SUCCESS) {
- ShellStatus = ShellReadFile(FileHandle, &(UINTN)Intermediate, Data);
+ ShellStatus = ShellReadFile(FileHandle, &((UINTN)Intermediate), Data);
}
} else {
Intermediate = StrSize(Data);
diff --git a/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c b/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c
index 1713d3bafc..81d738964e 100644
--- a/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c
+++ b/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c
@@ -929,7 +929,7 @@ BcfgAddOptInstall1(
//
ASSERT(FileName == NULL || Data == NULL);
- if (ShellStatus == SHELL_SUCCESS && FileName != NULL || Data != NULL) {
+ if (ShellStatus == SHELL_SUCCESS && (FileName != NULL || Data != NULL)) {
if (FileName != NULL) {
//
// Open the file and populate the data buffer.
@@ -948,7 +948,7 @@ BcfgAddOptInstall1(
ShellStatus = SHELL_OUT_OF_RESOURCES;
}
if (ShellStatus == SHELL_SUCCESS) {
- ShellStatus = ShellReadFile(FileHandle, &(UINTN)Intermediate, Data);
+ ShellStatus = ShellReadFile(FileHandle, &((UINTN)Intermediate), Data);
}
} else {
Intermediate = StrSize(Data);