https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a92304fdd46fd590f563a…
commit a92304fdd46fd590f563ad3c98bb6cea73153cce
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Jan 24 10:50:26 2022 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Mon Jan 24 10:50:26 2022 +0900
[RAPPS] Enable _DEBUG and fix assertion failures
CORE-17505
---
base/applications/rapps/appview.cpp | 2 --
base/applications/rapps/include/rapps.h | 4 ++++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/base/applications/rapps/appview.cpp b/base/applications/rapps/appview.cpp
index 7cffc3748bb..0072d4603e8 100644
--- a/base/applications/rapps/appview.cpp
+++ b/base/applications/rapps/appview.cpp
@@ -2047,8 +2047,6 @@ BOOL
CApplicationView::AddAvailableApplication(CAvailableApplicationInfo *AvlbAp
VOID CApplicationView::SetWatermark(const CStringW& Text)
{
- ATLASSERT(GetItemCount() == 0);
-
m_ListView->SetWatermark(Text);
}
diff --git a/base/applications/rapps/include/rapps.h
b/base/applications/rapps/include/rapps.h
index 595cf24e76e..ca31dd2e16b 100644
--- a/base/applications/rapps/include/rapps.h
+++ b/base/applications/rapps/include/rapps.h
@@ -1,6 +1,10 @@
#ifndef _RAPPS_H
#define _RAPPS_H
+#if DBG && !defined(_DEBUG)
+ #define _DEBUG // CORE-17505
+#endif
+
#include "defines.h"
#include "dialogs.h"