wineconsole: Give a name to the curses backend critical section.

This commit is contained in:
Francois Gouget 2011-10-27 12:36:27 +02:00 committed by Alexandre Julliard
parent 97ab9cc7e5
commit fc2b645d29
1 changed files with 2 additions and 0 deletions

View File

@ -985,6 +985,7 @@ static void WCCURSES_DeleteBackend(struct inner_data* data)
WaitForSingleObject( PRIVATE(data)->input_thread, INFINITE ); WaitForSingleObject( PRIVATE(data)->input_thread, INFINITE );
CloseHandle( PRIVATE(data)->input_thread ); CloseHandle( PRIVATE(data)->input_thread );
} }
PRIVATE(data)->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&PRIVATE(data)->lock); DeleteCriticalSection(&PRIVATE(data)->lock);
delwin(PRIVATE(data)->pad); delwin(PRIVATE(data)->pad);
@ -1103,6 +1104,7 @@ enum init_return WCCURSES_InitBackend(struct inner_data* data)
} }
#endif #endif
InitializeCriticalSection(&PRIVATE(data)->lock); InitializeCriticalSection(&PRIVATE(data)->lock);
PRIVATE(data)->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": curses");
return init_success; return init_success;
} }