Re: [Mingw-w64-public] [PATCH] add PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH to pathcch.h
在 2024-04-09 02:04, Oleg Tolmatcev 写道: Would the attached patch look good to you? Yes it looks good. Thank you. Thanks for the feedback. Pushed now. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [PATCH] add PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH to pathcch.h
Am Mo., 8. Apr. 2024 um 16:25 Uhr schrieb LIU Hao : > > 在 2024-04-06 18:48, Oleg Tolmatcev 写道: > > Hello, > > > > this is needed by PCSX2. > > > > Would the attached patch look good to you? Yes it looks good. Thank you. ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [PATCH] add PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH to pathcch.h
在 2024-04-06 18:48, Oleg Tolmatcev 写道: Hello, this is needed by PCSX2. Would the attached patch look good to you? -- Best regards, LIU Hao From 52d6399f66c73a779f9b59391db3d59d98864e36 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Mon, 8 Apr 2024 22:22:39 +0800 Subject: [PATCH] headers/pathcch: Add definition of `PATHCCH_OPTIONS` Signed-off-by: LIU Hao --- mingw-w64-headers/include/pathcch.h | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/pathcch.h b/mingw-w64-headers/include/pathcch.h index 3b0263634..62011fd1c 100644 --- a/mingw-w64-headers/include/pathcch.h +++ b/mingw-w64-headers/include/pathcch.h @@ -17,9 +17,20 @@ extern "C" { #define VOLUME_PREFIX L"?\\Volume" #define VOLUME_PREFIX_LEN (ARRAYSIZE (VOLUME_PREFIX) - 1) -#define PATHCCH_ALLOW_LONG_PATHS 0x0001 #define PATHCCH_MAX_CCH 0x8000 +typedef enum PATHCCH_OPTIONS { + PATHCCH_NONE = 0x0, + PATHCCH_ALLOW_LONG_PATHS = 0x01, + PATHCCH_FORCE_ENABLE_LONG_NAME_PROCESS = 0x02, + PATHCCH_FORCE_DISABLE_LONG_NAME_PROCESS = 0x04, + PATHCCH_DO_NOT_NORMALIZE_SEGMENTS = 0x08, + PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH = 0x10, + PATHCCH_ENSURE_TRAILING_SLASH = 0x020, + PATHCCH_CANONICALIZE_SLASHES = 0x040 +} PATHCCH_OPTIONS; +DEFINE_ENUM_FLAG_OPERATORS(PATHCCH_OPTIONS) + WINPATHCCHAPI HRESULT APIENTRY PathAllocCombine (PCWSTR pszPathIn, PCWSTR pszMore, unsigned long dwFlags, PWSTR *ppszPathOut); WINPATHCCHAPI HRESULT APIENTRY PathAllocCanonicalize (PCWSTR pszPathIn, unsigned long dwFlags, PWSTR *ppszPathOut); WINPATHCCHAPI HRESULT APIENTRY PathCchAddBackslash (PWSTR pszPath, size_t cchPath); -- 2.44.0 OpenPGP_signature.asc Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [PATCH] add PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH to pathcch.h
在 2024-04-06 18:48, Oleg Tolmatcev 写道: Hello, this is needed by PCSX2. Thanks for the patch. For this change, I suggest we add all `PATHCCH_*` constants, and change them to enumerators as in Windows 10 SDK. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
[Mingw-w64-public] [PATCH] add PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH to pathcch.h
Hello, this is needed by PCSX2. Best regards Oleg Tolmatcev From c5b7f3c4629dbf92489f2a41c3003bf40a470ac0 Mon Sep 17 00:00:00 2001 From: Oleg Tolmatcev Date: Sat, 6 Apr 2024 12:46:07 +0200 Subject: [PATCH] add PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH to pathcch.h --- mingw-w64-headers/include/pathcch.h | 1 + 1 file changed, 1 insertion(+) diff --git a/mingw-w64-headers/include/pathcch.h b/mingw-w64-headers/include/pathcch.h index 3b026363..15b14b23 100644 --- a/mingw-w64-headers/include/pathcch.h +++ b/mingw-w64-headers/include/pathcch.h @@ -19,6 +19,7 @@ extern "C" { #define PATHCCH_ALLOW_LONG_PATHS 0x0001 #define PATHCCH_MAX_CCH 0x8000 +#define PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH 0x10 WINPATHCCHAPI HRESULT APIENTRY PathAllocCombine (PCWSTR pszPathIn, PCWSTR pszMore, unsigned long dwFlags, PWSTR *ppszPathOut); WINPATHCCHAPI HRESULT APIENTRY PathAllocCanonicalize (PCWSTR pszPathIn, unsigned long dwFlags, PWSTR *ppszPathOut); -- 2.44.0.windows.1 ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public