Commit e54654ef authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

msvcp140: Add __crtFreeLibraryWhenCallbackReturns.

parent 5fb502b0
......@@ -3763,7 +3763,7 @@
@ cdecl __crtCreateThreadpoolTimer(ptr ptr ptr) MSVCP__crtCreateThreadpoolTimer
@ cdecl __crtCreateThreadpoolWait(ptr ptr ptr) MSVCP__crtCreateThreadpoolWait
@ stub __crtFlushProcessWriteBuffers
@ stub __crtFreeLibraryWhenCallbackReturns
@ cdecl __crtFreeLibraryWhenCallbackReturns(ptr ptr) MSVCP__crtFreeLibraryWhenCallbackReturns
@ stub __crtGetCurrentProcessorNumber
@ stub __crtGetFileInformationByHandleEx
@ stub __crtGetLocaleInfoEx
......
......@@ -1332,6 +1332,15 @@ VOID CDECL MSVCP__crtSetThreadpoolWait(TP_WAIT *wait, HANDLE handle, FILETIME *d
return SetThreadpoolWait(wait, handle, due_time);
}
/*********************************************************************
* __crtFreeLibraryWhenCallbackReturns (MSVCP140.@)
*/
VOID CDECL MSVCP__crtFreeLibraryWhenCallbackReturns(PTP_CALLBACK_INSTANCE instance, HMODULE mod)
{
TRACE("(%p %p)\n", instance, mod);
FreeLibraryWhenCallbackReturns(instance, mod);
}
/* ?_Execute_once@std@@YAHAAUonce_flag@1@P6GHPAX1PAPAX@Z1@Z */
/* ?_Execute_once@std@@YAHAEAUonce_flag@1@P6AHPEAX1PEAPEAX@Z1@Z */
BOOL __cdecl _Execute_once(INIT_ONCE *flag, PINIT_ONCE_FN func, void *param)
......
......@@ -1994,6 +1994,7 @@ WINBASEAPI BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
#define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
WINBASEAPI BOOL WINAPI FreeLibrary(HMODULE);
WINBASEAPI VOID DECLSPEC_NORETURN WINAPI FreeLibraryAndExitThread(HINSTANCE,DWORD);
WINBASEAPI VOID WINAPI FreeLibraryWhenCallbackReturns(PTP_CALLBACK_INSTANCE,HMODULE);
#define FreeModule(handle) FreeLibrary(handle)
#define FreeProcInstance(proc) /*nothing*/
WINBASEAPI BOOL WINAPI FreeResource(HGLOBAL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment