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

Alexandre Julliard julliard at winehq.org
Thu Oct 27 13:30:12 CDT 2011


Module: wine
Branch: master
Commit: fc2b645d296cd5d3559e17e1977a2f7169c8be30
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fc2b645d296cd5d3559e17e1977a2f7169c8be30

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Oct 27 12:36:27 2011 +0200

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

---

 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;
 }




More information about the wine-cvs mailing list