]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c
ShellPkg: add more parenthesis to bcfg command.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / Bcfg.c
index 10ce33eee9f348df4573f0a22f649fdab9649915..fed38564e93c3941cd7ed9f974cf9727ba2266d3 100644 (file)
@@ -929,7 +929,7 @@ BcfgAddOptDebug1(
   //\r
   ASSERT(FileName == NULL || Data == NULL);\r
 \r
-  if (ShellStatus == SHELL_SUCCESS && FileName != NULL || Data != NULL) {\r
+  if (ShellStatus == SHELL_SUCCESS && (FileName != NULL || Data != NULL)) {\r
     if (FileName != NULL) {\r
       //\r
       // Open the file and populate the data buffer.\r
@@ -948,7 +948,7 @@ BcfgAddOptDebug1(
         ShellStatus = SHELL_OUT_OF_RESOURCES;\r
       }\r
       if (ShellStatus == SHELL_SUCCESS) {\r
-        ShellStatus = ShellReadFile(FileHandle, &(UINTN)Intermediate, Data);\r
+        ShellStatus = ShellReadFile(FileHandle, &((UINTN)Intermediate), Data);\r
       }\r
     } else {\r
       Intermediate = StrSize(Data);\r