Remove LPTHREAD_START_ROUTINE Casts
rob at codeweavers.com
Wed Nov 3 10:46:24 CST 2004
There is no legitimate reason to need use a type cast when passing in
the thread start routine to CreateThread. At least one of the functions
in this patch would have resulted in undefined behaviour from pretending
that the thread function return void instead of DWORD. Many of the other
functions would have resulted in a trashed stack if the functions they
didn't use ExitThread.
Fix broken thread start routines.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8022 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20041103/74052ba5/threadfunc.bin
More information about the wine-patches