Robert Shearman rob at
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...
Name: threadfunc.diff
Type: text/x-patch
Size: 8022 bytes
Desc: not available
Url :

More information about the wine-patches mailing list