2015-02-28 15:46:43 +00:00
|
|
|
|
|
|
|
#include "k32_vista.h"
|
|
|
|
|
|
|
|
#include <ndk/exfuncs.h>
|
|
|
|
#include <wine/config.h>
|
|
|
|
#include <wine/port.h>
|
|
|
|
|
2020-09-12 13:04:02 +00:00
|
|
|
DWORD WINAPI RtlRunOnceExecuteOnce( RTL_RUN_ONCE *once, PRTL_RUN_ONCE_INIT_FN func,
|
|
|
|
void *param, void **context );
|
2015-02-28 15:46:43 +00:00
|
|
|
|
|
|
|
/* Taken from Wine kernel32/sync.c */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
BOOL NTAPI InitOnceExecuteOnce( INIT_ONCE *once, PINIT_ONCE_FN func, void *param, void **context )
|
|
|
|
{
|
2020-09-12 13:04:02 +00:00
|
|
|
return !RtlRunOnceExecuteOnce( once, (PRTL_RUN_ONCE_INIT_FN)func, param, context );
|
2015-02-28 15:46:43 +00:00
|
|
|
}
|