if (index >= __slotCount)
{
+ r = __pLock->Release();
+ SysTryLog(NID_BASE, !IsFailed(r), "Failed to release mutex");
+
SetLastResult(E_OBJ_NOT_FOUND);
return null;
}
_HandleElement& element = __pSlots[index];
if (element.__id != ((_Handle*)&handle)->__id)
{
+ r = __pLock->Release();
+ SysTryLog(NID_BASE, !IsFailed(r), "Failed to release mutex");
+
SetLastResult(E_OBJ_NOT_FOUND);
return null;
}
if (index >= __slotCount)
{
+ r = __pLock->Release();
+ SysTryLog(NID_BASE, !IsFailed(r), "Failed to release mutex");
+
SetLastResult(E_OBJ_NOT_FOUND);
return null;
}
const _HandleElement& element = __pSlots[index];
if (element.__id != ((_Handle*)&handle)->__id)
{
+ r = __pLock->Release();
+ SysTryLog(NID_BASE, !IsFailed(r), "Failed to release mutex");
+
SetLastResult(E_OBJ_NOT_FOUND);
return null;
}