mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
itss: Force debug info in critical sections.
This commit is contained in:
parent
f4a3f573c2
commit
131918e4c2
1 changed files with 6 additions and 6 deletions
|
@ -686,11 +686,11 @@ struct chmFile *chm_openW(const WCHAR *filename)
|
|||
}
|
||||
|
||||
/* initialize mutexes, if needed */
|
||||
InitializeCriticalSection(&newHandle->mutex);
|
||||
InitializeCriticalSectionEx(&newHandle->mutex, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||
newHandle->mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.mutex");
|
||||
InitializeCriticalSection(&newHandle->lzx_mutex);
|
||||
InitializeCriticalSectionEx(&newHandle->lzx_mutex, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||
newHandle->lzx_mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.lzx_mutex");
|
||||
InitializeCriticalSection(&newHandle->cache_mutex);
|
||||
InitializeCriticalSectionEx(&newHandle->cache_mutex, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||
newHandle->cache_mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.cache_mutex");
|
||||
|
||||
/* read and verify header */
|
||||
|
@ -817,11 +817,11 @@ struct chmFile *chm_dup(struct chmFile *oldHandle)
|
|||
newHandle->cache_num_blocks = 0;
|
||||
|
||||
/* initialize mutexes, if needed */
|
||||
InitializeCriticalSection(&newHandle->mutex);
|
||||
InitializeCriticalSectionEx(&newHandle->mutex, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||
newHandle->mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.mutex");
|
||||
InitializeCriticalSection(&newHandle->lzx_mutex);
|
||||
InitializeCriticalSectionEx(&newHandle->lzx_mutex, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||
newHandle->lzx_mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.lzx_mutex");
|
||||
InitializeCriticalSection(&newHandle->cache_mutex);
|
||||
InitializeCriticalSectionEx(&newHandle->cache_mutex, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||
newHandle->cache_mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.cache_mutex");
|
||||
|
||||
/* initialize cache */
|
||||
|
|
Loading…
Reference in a new issue