Juan Lang juan_lang@yahoo.com writes:
+static struct list providers; +CRITICAL_SECTION providers_cs;
+void crypt_sip_init(void) +{
- InitializeCriticalSection(&providers_cs);
- list_init(&providers);
- providers_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": providers_cs");
+}
Lists and critical sections can be initialized statically, this is more efficient and avoids having to export a bunch of init functions.