msvcp90: {init,free}_misc() are only used with msvcp >= 100.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2017-04-01 14:36:29 +02:00 committed by Alexandre Julliard
parent 3931491255
commit 459134b855
2 changed files with 6 additions and 0 deletions

View File

@ -1364,6 +1364,7 @@ BOOL __cdecl _Execute_once(INIT_ONCE *flag, PINIT_ONCE_FN func, void *param)
return InitOnceExecuteOnce(flag, func, param, NULL);
}
#if _MSVCP_VER >= 100
void init_misc(void *base)
{
#ifdef __x86_64__
@ -1393,6 +1394,7 @@ void free_misc(void)
HeapFree(GetProcessHeap(), 0, broadcast_at_thread_exit.to_broadcast);
#endif
}
#endif
#if _MSVCP_VER >= 140
LONGLONG __cdecl _Query_perf_counter(void)

View File

@ -209,14 +209,18 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
init_exception(hinstDLL);
init_locale(hinstDLL);
init_io(hinstDLL);
#if _MSVCP_VER >= 100
init_misc(hinstDLL);
#endif
break;
case DLL_PROCESS_DETACH:
if (lpvReserved) break;
free_io();
free_locale();
free_lockit();
#if _MSVCP_VER >= 100
free_misc();
#endif
break;
}