Remove LPTHREAD_START_ROUTINE Casts
Robert Shearman
rob at codeweavers.com
Wed Nov 3 10:46:24 CST 2004
Hi,
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.
Changelog:
Fix broken thread start routines.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: threadfunc.diff
Type: text/x-patch
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
mailing list