mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +00:00
[RAPPS] Do not implicitly cast pointer to BOOL
This commit is contained in:
parent
b0abd14b03
commit
7a52db76c5
1 changed files with 7 additions and 3 deletions
|
@ -96,9 +96,13 @@ public:
|
||||||
|
|
||||||
BOOL RemoveAt(INT i)
|
BOOL RemoveAt(INT i)
|
||||||
{
|
{
|
||||||
T* ptr = (T*) DPA_GetPtr(m_hDpa, i);
|
PVOID ptr = DPA_DeletePtr(m_hDpa, i);
|
||||||
OnRemoveItem(ptr);
|
if (ptr != NULL)
|
||||||
return DPA_DeletePtr(m_hDpa, i);
|
{
|
||||||
|
OnRemoveItem(reinterpret_cast<T*>(ptr));
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL Clear()
|
BOOL Clear()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue