Fix prototype of the callback to InitOnceExecuteOnce: Missing CALLBACK.

(Some version of the compilers for windows produced warnings)
This commit is contained in:
Patrick Pelissier committed 2018-07-18 21:21:35 +02:00
1 parent 7cfb6b16e4
commit 540e01f1fe
1 file changed
+1 -1
+1 -1
View File
@@ -226,7 +226,7 @@ static inline bool m_thread_sleep(unsigned long long usec)
// Internal type, not exported. // Internal type, not exported.
typedef INIT_ONCE m_oncei_t[1]; typedef INIT_ONCE m_oncei_t[1];
#define M_ONCEI_INIT_VALUE { INIT_ONCE_STATIC_INIT } #define M_ONCEI_INIT_VALUE { INIT_ONCE_STATIC_INIT }
static inline BOOL m_oncei_callback( PINIT_ONCE InitOnce, PVOID Parameter, PVOID *lpContext) static inline BOOL CALLBACK m_oncei_callback( PINIT_ONCE InitOnce, PVOID Parameter, PVOID *lpContext)
{ {
void (*func)(void); void (*func)(void);
(void) InitOnce; (void) InitOnce;