在 2025-10-22 20:04, Yan-Jie Wang 写道:
Align behavior of ConvertBSTRToString with comsuppw.lib.On allocation failure, call _com_issue_error(E_OUTOFMEMORY). If the default handler _com_raise_error() is used, it raises a _com_error exception. Signed-off-by: Yan-Jie Wang <[email protected]> --- Please see this revised patch. Changes from v5: - Call ::GetLastError() immediately after the failing function call. mingw-w64-headers/include/comutil.h | 47 +++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-)
Thanks for the update. This patch looks good to me. I have pushed it to master now. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
