From b652e93a460b4b822a01382e5992f96f1d805ffe Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 3 Jun 2022 17:47:54 -0500 Subject: Replace PathCompare with PathCompareCanonicalized. --- src/libs/dutil/WixToolset.DUtil/pathutil.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/libs/dutil/WixToolset.DUtil/pathutil.cpp') diff --git a/src/libs/dutil/WixToolset.DUtil/pathutil.cpp b/src/libs/dutil/WixToolset.DUtil/pathutil.cpp index a9a19b9f..abbf4d4b 100644 --- a/src/libs/dutil/WixToolset.DUtil/pathutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/pathutil.cpp @@ -1080,32 +1080,6 @@ LExit: } -DAPI_(HRESULT) PathCompare( - __in_z LPCWSTR wzPath1, - __in_z LPCWSTR wzPath2, - __out int* pnResult - ) -{ - HRESULT hr = S_OK; - LPWSTR sczPath1 = NULL; - LPWSTR sczPath2 = NULL; - - hr = PathExpand(&sczPath1, wzPath1, PATH_EXPAND_ENVIRONMENT | PATH_EXPAND_FULLPATH); - PathExitOnFailure(hr, "Failed to expand path1."); - - hr = PathExpand(&sczPath2, wzPath2, PATH_EXPAND_ENVIRONMENT | PATH_EXPAND_FULLPATH); - PathExitOnFailure(hr, "Failed to expand path2."); - - *pnResult = ::CompareStringW(LOCALE_NEUTRAL, NORM_IGNORECASE, sczPath1, -1, sczPath2, -1); - -LExit: - ReleaseStr(sczPath2); - ReleaseStr(sczPath1); - - return hr; -} - - DAPI_(HRESULT) PathCompress( __in_z LPCWSTR wzPath ) -- cgit v1.2.3-55-g6feb