https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7a52db76c5fe24f71c66231bebabac3af7a8f5ab
commit 7a52db76c5fe24f71c66231bebabac3af7a8f5ab Author: Jérôme Gardou <jerome.gar...@reactos.org> AuthorDate: Mon Nov 9 16:05:12 2020 +0100 Commit: Jérôme Gardou <zefk...@users.noreply.github.com> CommitDate: Mon Nov 16 16:58:10 2020 +0100 [RAPPS] Do not implicitly cast pointer to BOOL --- base/applications/rapps/include/rosui.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/base/applications/rapps/include/rosui.h b/base/applications/rapps/include/rosui.h index 0aaf303b017..4402b26f28b 100644 --- a/base/applications/rapps/include/rosui.h +++ b/base/applications/rapps/include/rosui.h @@ -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()