Jan Zerebecki : kernel32: Add DebugInfo to critical sections.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 12 08:28:34 CDT 2007
Module: wine
Branch: master
Commit: f7c4b25723189bfa032f472f04dfec4ea8c6690b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f7c4b25723189bfa032f472f04dfec4ea8c6690b
Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date: Sat Mar 10 22:08:48 2007 +0100
kernel32: Add DebugInfo to critical sections.
---
dlls/kernel32/file.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c
index f92d37a..71d5030 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -1671,6 +1671,7 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
}
RtlInitializeCriticalSection( &info->cs );
+ info->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": FIND_FIRST_INFO.cs");
info->path = nt_name;
info->magic = FIND_FIRST_MAGIC;
info->data_pos = 0;
@@ -1849,6 +1850,7 @@ BOOL WINAPI FindClose( HANDLE handle )
info->data_pos = 0;
info->data_len = 0;
RtlLeaveCriticalSection( &info->cs );
+ info->cs.DebugInfo->Spare[0] = 0;
RtlDeleteCriticalSection( &info->cs );
HeapFree( GetProcessHeap(), 0, info );
}
More information about the wine-cvs
mailing list