mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:47:16 +00:00
secur32: Make the cs critical section static.
This commit is contained in:
parent
9b3bd3f917
commit
5305c8e009
|
@ -83,6 +83,13 @@ static void SECUR32_freeProviders(void);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static CRITICAL_SECTION cs;
|
static CRITICAL_SECTION cs;
|
||||||
|
static CRITICAL_SECTION_DEBUG cs_debug =
|
||||||
|
{
|
||||||
|
0, 0, &cs,
|
||||||
|
{ &cs_debug.ProcessLocksList, &cs_debug.ProcessLocksList },
|
||||||
|
0, 0, { (DWORD_PTR)(__FILE__ ": cs") }
|
||||||
|
};
|
||||||
|
static CRITICAL_SECTION cs = { &cs_debug, -1, 0, 0, 0, 0 };
|
||||||
static SecurePackageTable *packageTable = NULL;
|
static SecurePackageTable *packageTable = NULL;
|
||||||
static SecureProviderTable *providerTable = NULL;
|
static SecureProviderTable *providerTable = NULL;
|
||||||
|
|
||||||
|
@ -553,8 +560,6 @@ static void SECUR32_initializeProviders(void)
|
||||||
LSTATUS apiRet;
|
LSTATUS apiRet;
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
InitializeCriticalSection(&cs);
|
|
||||||
cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs");
|
|
||||||
/* First load built-in providers */
|
/* First load built-in providers */
|
||||||
SECUR32_initSchannelSP();
|
SECUR32_initSchannelSP();
|
||||||
SECUR32_initNTLMSP();
|
SECUR32_initNTLMSP();
|
||||||
|
@ -703,7 +708,6 @@ static void SECUR32_freeProviders(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
LeaveCriticalSection(&cs);
|
LeaveCriticalSection(&cs);
|
||||||
cs.DebugInfo->Spare[0] = 0;
|
|
||||||
DeleteCriticalSection(&cs);
|
DeleteCriticalSection(&cs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue