On 07/13/15 21:39, Iván Matellanes wrote:
+/* ?x_lockc@ios@@0U_CRT_CRITICAL_SECTION@@A */ +CRITICAL_SECTION ios_static_lock;
/* ?unsetf@ios@@QAEJJ@Z */ @@ -1322,6 +1327,12 @@ static void init_io(void *base) init_streambuf_rtti(base); init_ios_rtti(base); #endif
- InitializeCriticalSection(&ios_static_lock);
+}
+static void free_io(void) +{
- DeleteCriticalSection(&ios_static_lock); }
Please initialize the critical section statically (e.g. MSVCRT_file_cs is initialized that way in dlls/msvcrt/file.c).
Thanks, Piotr