Eric Pouech : msvcrt: Add cast to avoid 'long' types warning in _beginthreadex.
Alexandre Julliard
julliard at winehq.org
Thu Feb 3 16:06:57 CST 2022
Module: wine
Branch: master
Commit: 800971f9344e67067f0c8c96a8ffb4c264414d4d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=800971f9344e67067f0c8c96a8ffb4c264414d4d
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Thu Feb 3 11:50:24 2022 +0100
msvcrt: Add cast to avoid 'long' types warning in _beginthreadex.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcrt/thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcrt/thread.c b/dlls/msvcrt/thread.c
index 173763d0eb1..e71b949a6d5 100644
--- a/dlls/msvcrt/thread.c
+++ b/dlls/msvcrt/thread.c
@@ -235,7 +235,7 @@ uintptr_t CDECL _beginthreadex(
#endif
thread = CreateThread(security, stack_size, _beginthreadex_trampoline,
- trampoline, initflag, thrdaddr);
+ trampoline, initflag, (DWORD *)thrdaddr);
if(!thread) {
#if _MSVCR_VER >= 140
FreeLibrary(trampoline->module);
More information about the wine-cvs
mailing list