Re: [Mingw-w64-public] [PATCH] Drop the empty exception declaration from CheckError

2020-04-05 Thread Liu Hao
在 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 > Signed-of

[Mingw-w64-public] [PATCH] Drop the empty exception declaration from CheckError

2020-04-05 Thread Stephen Kitt
The function is defined as follows: namespace _com_util { inline void CheckError(HRESULT hr) throw() { if(FAILED(hr)) { _com_issue_error(hr); } } } but _com_issue_error is defined as: inline void _com_issue_error(HRESULT hr) { #if __EXCEPTIONS throw _c