Implemented _CheckNotSysLevel.

This commit is contained in:
Alexandre Julliard 2001-08-15 23:32:47 +00:00
parent 2fe7c11014
commit 181e3d8614
2 changed files with 6 additions and 1 deletions

View File

@ -1918,6 +1918,7 @@ VOID WINAPI RestoreThunkLock(DWORD);
void WINAPI SetProcessDword(DWORD,INT,DWORD);
VOID WINAPI UnMapLS(DWORD);
HFILE WINAPI Win32HandleToDosFileHandle(HANDLE);
VOID WINAPI _CheckNotSysLevel(SYSLEVEL *lock);
DWORD WINAPI _ConfirmWin16Lock(void);
DWORD WINAPI _ConfirmSysLevel(SYSLEVEL*);
VOID WINAPI _EnterSysLevel(SYSLEVEL*);

View File

@ -145,7 +145,11 @@ DWORD WINAPI _ConfirmSysLevel(SYSLEVEL *lock)
*/
VOID WINAPI _CheckNotSysLevel(SYSLEVEL *lock)
{
FIXME("(%p)\n", lock);
if (lock && lock->crst.OwningThread == GetCurrentThreadId() && lock->crst.RecursionCount)
{
ERR( "Holding lock %p level %d\n", lock, lock->level );
DbgBreakPoint();
}
}