在 2020/4/6 5:04, Stephen Kitt 写道:
> The function is defined as follows:
> 
>   
> so actually calling it with a failed HRESULT crashes the program. I
> think the empty exception specification should simply be dropped.
> 
> See https://bugs.debian.org/816427
> 
> Reported-by: Sam Morris <s...@robots.org.uk>
> Signed-off-by: Stephen Kitt <st...@sk2.org>
> ---
>  mingw-w64-headers/include/comutil.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 


Yes, the `throw()` specification requests that no exception shall be
thrown from the function. It doesn't exist in MS headers and was
probably an oversight. I pushed this patch too.

-- 
Best regards,
LH_Mouse

Attachment: 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

Reply via email to