Thread (32 messages) flat view 32 messages, 7 authors, 2016-06-15

Re: [PATCH 07/17] Fix __stdcall/WINAPI placement and function prototype

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:47:24

On Montag, 14. September 2009, Marius Storm-Olsen wrote:
WINAPI is a macro which translates into the proper calling convention, so
replace __stdcall with that.
I've already pointed out elsewhere that the documentation of _beginthreadex 
explicitly says that the calling convention of the function pointer must be 
__stdcall. It does not mention WINAPI. Therefore, I think that these two 
changes are not correct:
-static __stdcall unsigned ticktack(void *dummy)
+static unsigned WINAPI ticktack(void *dummy)
-static __stdcall unsigned run_thread(void *data)
+static unsigned WINAPI run_thread(void *data)
You should s/WINAPI/__stdcall/.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help