From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E66ED81F3A for ; Wed, 16 Nov 2016 22:32:20 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP; 16 Nov 2016 22:32:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,504,1473145200"; d="scan'208";a="192420595" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.34]) by fmsmga004.fm.intel.com with ESMTP; 16 Nov 2016 22:32:24 -0800 From: Hao Wu To: edk2-devel@lists.01.org Cc: Hao Wu , Ruiyu Ni , Liming Gao Date: Thu, 17 Nov 2016 14:32:22 +0800 Message-Id: <1479364343-21736-1-git-send-email-hao.a.wu@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.0 Subject: [PATCH v2] API PathRemoveLastItem not handle root paths properly X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2016 06:32:21 -0000 Changes made comparing V1: The checks added in V1 patch will lead to PathRemoveLastItem() API behavior change. V2 of the patch will only focus on correcting the API behavior on input paths like 'fs0:\'. Cc: Ruiyu Ni Cc: Liming Gao Hao Wu (1): MdePkg BaseLib: API PathRemoveLastItem not handle root paths properly MdePkg/Include/Library/BaseLib.h | 3 +-- MdePkg/Library/BaseLib/FilePaths.c | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) -- 1.9.5.msysgit.0