mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
GDIOBJ_ShareUnlockObjByPtr: Temporarily don't ASSERT, but print a backtrace when trying to unlock an object that wasn't locked.
svn path=/trunk/; revision=40189
This commit is contained in:
parent
d34ef92b8b
commit
3b14a5465d
1 changed files with 7 additions and 1 deletions
|
@ -104,7 +104,13 @@ FORCEINLINE
|
|||
GDIOBJ_ShareUnlockObjByPtr(POBJ Object)
|
||||
{
|
||||
INT cLocks = InterlockedDecrement((PLONG)&Object->ulShareCount);
|
||||
ASSERT(cLocks >= 0);
|
||||
// ASSERT(cLocks >= 0);
|
||||
if (cLocks < 0)
|
||||
{
|
||||
DbgPrint("Unlocked object %p, that was not locked!\n", Object->hHmgr);
|
||||
KdSystemDebugControl(TAG('R', 'o', 's', 'D'), NULL, 20, NULL, 0, NULL, KernelMode);
|
||||
InterlockedIncrement((PLONG)&Object->ulShareCount);
|
||||
}
|
||||
return cLocks;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue