]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix a typo when check the return value
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 22 Oct 2011 04:10:30 +0000 (04:10 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 22 Oct 2011 04:10:30 +0000 (04:10 +0000)
Signed-off-by: ydong10
Reviewed-by: jcarsey
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12556 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Application/Shell/ShellParametersProtocol.c

index 91a0f5f8a294db0626ce6ba23c6cf4535462cb01..9e502256746c7e81ce648054b1149f8e3056b61a 100644 (file)
@@ -1040,7 +1040,7 @@ UpdateStdInStdOutStdErr(
             TempHandle = CreateFileInterfaceFile(TempHandle, FALSE);\r
           }\r
           Size = 0;\r
-          if (TempHandle != NULL || ((EFI_FILE_PROTOCOL*)TempHandle)->Read(TempHandle, &Size, NULL) != EFI_BUFFER_TOO_SMALL) {\r
+          if (TempHandle == NULL || ((EFI_FILE_PROTOCOL*)TempHandle)->Read(TempHandle, &Size, NULL) != EFI_BUFFER_TOO_SMALL) {\r
             Status = EFI_INVALID_PARAMETER;\r
           } else {\r
             ShellParameters->StdIn = TempHandle;\r