itss: Add DebugInfo to critical sections.
This commit is contained in:
parent
f7c4b25723
commit
373fcd0066
|
@ -705,8 +705,11 @@ struct chmFile *chm_openW(const WCHAR *filename)
|
||||||
|
|
||||||
/* initialize mutexes, if needed */
|
/* initialize mutexes, if needed */
|
||||||
InitializeCriticalSection(&newHandle->mutex);
|
InitializeCriticalSection(&newHandle->mutex);
|
||||||
|
newHandle->mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.mutex");
|
||||||
InitializeCriticalSection(&newHandle->lzx_mutex);
|
InitializeCriticalSection(&newHandle->lzx_mutex);
|
||||||
|
newHandle->lzx_mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.lzx_mutex");
|
||||||
InitializeCriticalSection(&newHandle->cache_mutex);
|
InitializeCriticalSection(&newHandle->cache_mutex);
|
||||||
|
newHandle->cache_mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.cache_mutex");
|
||||||
|
|
||||||
/* read and verify header */
|
/* read and verify header */
|
||||||
sremain = _CHM_ITSF_V3_LEN;
|
sremain = _CHM_ITSF_V3_LEN;
|
||||||
|
@ -826,8 +829,11 @@ void chm_close(struct chmFile *h)
|
||||||
CHM_CLOSE_FILE(h->fd);
|
CHM_CLOSE_FILE(h->fd);
|
||||||
h->fd = CHM_NULL_FD;
|
h->fd = CHM_NULL_FD;
|
||||||
|
|
||||||
|
h->mutex.DebugInfo->Spare[0] = 0;
|
||||||
DeleteCriticalSection(&h->mutex);
|
DeleteCriticalSection(&h->mutex);
|
||||||
|
h->lzx_mutex.DebugInfo->Spare[0] = 0;
|
||||||
DeleteCriticalSection(&h->lzx_mutex);
|
DeleteCriticalSection(&h->lzx_mutex);
|
||||||
|
h->cache_mutex.DebugInfo->Spare[0] = 0;
|
||||||
DeleteCriticalSection(&h->cache_mutex);
|
DeleteCriticalSection(&h->cache_mutex);
|
||||||
|
|
||||||
if (h->lzx_state)
|
if (h->lzx_state)
|
||||||
|
|
Loading…
Reference in New Issue