atl: Added locking to AtlModuleAddCreateWndData.

This commit is contained in:
Jacek Caban 2012-12-12 14:55:58 +01:00 committed by Alexandre Julliard
parent 2c41c4c1cb
commit 55b0de2173
1 changed files with 3 additions and 0 deletions

View File

@ -428,8 +428,11 @@ void WINAPI AtlModuleAddCreateWndData(_ATL_MODULEW *pM, _AtlCreateWndData *pData
pData->m_pThis = pvObject;
pData->m_dwThreadID = GetCurrentThreadId();
EnterCriticalSection(&pM->m_csWindowCreate);
pData->m_pNext = pM->m_pCreateWndList;
pM->m_pCreateWndList = pData;
LeaveCriticalSection(&pM->m_csWindowCreate);
}
/***********************************************************************