mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 19:13:38 +00:00
msvcrt: Add DebugInfo to critical sections.
This commit is contained in:
parent
b06c08530f
commit
3b32ae2a54
|
@ -328,6 +328,7 @@ void msvcrt_init_io(void)
|
|||
int i;
|
||||
|
||||
InitializeCriticalSection(&MSVCRT_file_cs);
|
||||
MSVCRT_file_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": MSVCRT_file_cs");
|
||||
GetStartupInfoA(&si);
|
||||
if (si.cbReserved2 != 0 && si.lpReserved2 != NULL)
|
||||
{
|
||||
|
@ -796,6 +797,7 @@ void msvcrt_free_io(void)
|
|||
MSVCRT_fclose(&MSVCRT__iob[0]);
|
||||
MSVCRT_fclose(&MSVCRT__iob[1]);
|
||||
MSVCRT_fclose(&MSVCRT__iob[2]);
|
||||
MSVCRT_file_cs.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&MSVCRT_file_cs);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,11 +42,13 @@ static inline void msvcrt_mlock_set_entry_initialized( int locknum, BOOL initial
|
|||
static inline void msvcrt_initialize_mlock( int locknum )
|
||||
{
|
||||
InitializeCriticalSection( &(lock_table[ locknum ].crit) );
|
||||
lock_table[ locknum ].crit.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": LOCKTABLEENTRY.crit");
|
||||
msvcrt_mlock_set_entry_initialized( locknum, TRUE );
|
||||
}
|
||||
|
||||
static inline void msvcrt_uninitialize_mlock( int locknum )
|
||||
{
|
||||
lock_table[ locknum ].crit.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection( &(lock_table[ locknum ].crit) );
|
||||
msvcrt_mlock_set_entry_initialized( locknum, FALSE );
|
||||
}
|
||||
|
@ -136,4 +138,3 @@ void CDECL _unlock( int locknum )
|
|||
|
||||
LeaveCriticalSection( &(lock_table[ locknum ].crit) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue