Commit fc2b645d authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent 97ab9cc7
......@@ -985,6 +985,7 @@ static void WCCURSES_DeleteBackend(struct inner_data* data)
WaitForSingleObject( PRIVATE(data)->input_thread, INFINITE );
CloseHandle( PRIVATE(data)->input_thread );
}
PRIVATE(data)->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&PRIVATE(data)->lock);
delwin(PRIVATE(data)->pad);
......@@ -1103,6 +1104,7 @@ enum init_return WCCURSES_InitBackend(struct inner_data* data)
}
#endif
InitializeCriticalSection(&PRIVATE(data)->lock);
PRIVATE(data)->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": curses");
return init_success;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment