[RAPPS] Do not implicitly cast pointer to BOOL

This commit is contained in:
Jérôme Gardou 2020-11-09 16:05:12 +01:00 committed by Jérôme Gardou
parent b0abd14b03
commit 7a52db76c5

View file

@ -96,9 +96,13 @@ public:
BOOL RemoveAt(INT i)
{
T* ptr = (T*) DPA_GetPtr(m_hDpa, i);
OnRemoveItem(ptr);
return DPA_DeletePtr(m_hDpa, i);
PVOID ptr = DPA_DeletePtr(m_hDpa, i);
if (ptr != NULL)
{
OnRemoveItem(reinterpret_cast<T*>(ptr));
return TRUE;
}
return FALSE;
}
BOOL Clear()