From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) by mx.groups.io with SMTP id smtpd.web10.6046.1610435336335461642 for ; Mon, 11 Jan 2021 23:08:57 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: huawei.com, ip: 45.249.212.35, mailfrom: xiewenyi2@huawei.com) Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4DFM926sfMz7T4c for ; Tue, 12 Jan 2021 15:07:50 +0800 (CST) Received: from HGH1000039998.huawei.com (10.184.68.188) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Tue, 12 Jan 2021 15:08:44 +0800 From: "wenyi,xie" To: , , , , CC: , Subject: [PATCH EDK2 v1 0/1] MdeModulePkg/FileExplorerLib: Add return value check Date: Tue, 12 Jan 2021 15:06:37 +0800 Message-ID: <1610435198-12504-1-git-send-email-xiewenyi2@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.184.68.188] X-CFilter-Loop: Reflected Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Main Changes : Add status check after calling LibGetFileHandleFromMenu, if the status is= not success, then do not call LibFindFiles. Wenyi Xie (1): MdeModulePkg/FileExplorerLib: Add return value check MdeModulePkg/Library/FileExplorerLib/FileExplorer.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) --=20 2.20.1.windows.1