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

Francois Gouget fgouget at codeweavers.com
Thu Oct 27 05:36:27 CDT 2011


---
 programs/wineconsole/curses.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/programs/wineconsole/curses.c b/programs/wineconsole/curses.c
index 013a062..1f68d8d 100644
--- a/programs/wineconsole/curses.c
+++ b/programs/wineconsole/curses.c
@@ -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;
 }
-- 
1.7.6.3



More information about the wine-patches mailing list