mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
f9aefb6a06
commit
479f85bb72
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue