[1] describes PathQuoteSpacesA with return type bool and [2] describes PathQuoteSpacesW with return type bool.
Both functions are currently declared with return type void in shlwapi.h. Fix this by using LWSTDAPI_(WINBOOL) as return type similar to the other functions in that header. This fixes bug report 999. See [3]. [1]: https://learn.microsoft.com/en-us/windows/win32/api/shlwapi/nf-shlwapi-pathquotespacesa [2]: https://learn.microsoft.com/en-us/windows/win32/api/shlwapi/nf-shlwapi-pathquotespacesw [3]: https://sourceforge.net/p/mingw-w64/bugs/999/ Fixes: 9d937a7f4f76 ("Add mingw-w64 header set as initial set.") Signed-off-by: Daniel Starke <daniel-em...@gmx.net> --- mingw-w64-headers/include/shlwapi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mingw-w64-headers/include/shlwapi.h b/mingw-w64-headers/include/shlwapi.h index 131f56a356c4..0d742c58cde3 100644 --- a/mingw-w64-headers/include/shlwapi.h +++ b/mingw-w64-headers/include/shlwapi.h @@ -438,8 +438,8 @@ extern "C" { LWSTDAPI_(WINBOOL) PathMatchSpecW(LPCWSTR pszFile,LPCWSTR pszSpec); LWSTDAPI_(int) PathParseIconLocationA(LPSTR pszIconFile); LWSTDAPI_(int) PathParseIconLocationW(LPWSTR pszIconFile); - LWSTDAPI_(void) PathQuoteSpacesA(LPSTR lpsz); - LWSTDAPI_(void) PathQuoteSpacesW(LPWSTR lpsz); + LWSTDAPI_(WINBOOL) PathQuoteSpacesA(LPSTR lpsz); + LWSTDAPI_(WINBOOL) PathQuoteSpacesW(LPWSTR lpsz); LWSTDAPI_(WINBOOL) PathRelativePathToA(LPSTR pszPath,LPCSTR pszFrom,DWORD dwAttrFrom,LPCSTR pszTo,DWORD dwAttrTo); LWSTDAPI_(WINBOOL) PathRelativePathToW(LPWSTR pszPath,LPCWSTR pszFrom,DWORD dwAttrFrom,LPCWSTR pszTo,DWORD dwAttrTo); LWSTDAPI_(void) PathRemoveArgsA(LPSTR pszPath); -- 2.39.5 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public