mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[RAPPS] Do not implicitly cast pointer to BOOL
This commit is contained in:
committed by
Jérôme Gardou
parent
b0abd14b03
commit
7a52db76c5
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user