Function GetModuleHandle() returns HMODULE, not HANDLE.
So function __mingw_get_msvcrt_handle() has to also return HMODULE.
---
mingw-w64-crt/include/msvcrt.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mingw-w64-crt/include/msvcrt.h b/mingw-w64-crt/include/msvcrt.h
index 348a8562e82d..9e48bf0694b3 100644
--- a/mingw-w64-crt/include/msvcrt.h
+++ b/mingw-w64-crt/include/msvcrt.h
@@ -7,7 +7,7 @@
#include <winbase.h>
-static inline HANDLE __mingw_get_msvcrt_handle(void)
+static inline HMODULE __mingw_get_msvcrt_handle(void)
{
return GetModuleHandleA("msvcrt.dll");
}
--
2.20.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public