在 2026-2-25 04:51, Pali Rohár 写道:
This ensures that always ANSI variant is of the function is used. --- mingw-w64-crt/testcases/t_safe_flush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/mingw-w64-crt/testcases/t_safe_flush.c b/mingw-w64-crt/testcases/t_safe_flush.c index 5e617fac9f16..a51d8d2af448 100644 --- a/mingw-w64-crt/testcases/t_safe_flush.c +++ b/mingw-w64-crt/testcases/t_safe_flush.c @@ -33,7 +33,7 @@ static DWORD WINAPI thread_main(LPVOID user_data) { static void spawn_thread(void) { HANDLE handle_event;- assert(handle_event = CreateEvent(NULL, TRUE, FALSE, NULL));+ assert(handle_event = CreateEventA(NULL, TRUE, FALSE, NULL)); assert(CreateThread(NULL, 0, thread_main, handle_event, 0, NULL) != NULL); assert(WaitForSingleObject(handle_event, INFINITE) == WAIT_OBJECT_0); assert(CloseHandle(handle_event));
This patch looks good to me. I have pushed this one now. Thanks. -- 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
