在 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 <[email protected]> > Signed-off-by: Stephen Kitt <[email protected]> > --- > 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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
