Re: [Mingw-w64-public] [PATCH 1/1] headers: Fix wrong return type for PathQuoteSpacesA and PathQuoteSpacesW

2025-01-14 Thread LIU Hao
在 2025-01-15 06:11, Daniel Starke via Mingw-w64-public 写道: [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

[Mingw-w64-public] [PATCH 1/1] headers: Fix wrong return type for PathQuoteSpacesA and PathQuoteSpacesW

2025-01-14 Thread Daniel Starke via Mingw-w64-public
[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 b

Re: [Mingw-w64-public] getmainargs changes

2025-01-14 Thread Pali Rohár
On Tuesday 14 January 2025 21:42:18 Lasse Collin wrote: > On 2025-01-12 Pali Rohár wrote: > > GetCommandLineA(), __p__acmdln(), _acmdln and WinMain()'s lpCmdLine > > are all affected by this problem. In any case, I think we should mark > > all these functions and variables as security vulnerable. I

Re: [Mingw-w64-public] getmainargs changes

2025-01-14 Thread Lasse Collin
On 2025-01-12 Pali Rohár wrote: > GetCommandLineA(), __p__acmdln(), _acmdln and WinMain()'s lpCmdLine > are all affected by this problem. In any case, I think we should mark > all these functions and variables as security vulnerable. Is there > some attribute for gcc for marking them, so usage woul