From 3fe5f97dcd7c8ef8deabc32a83f5075df13bc8d2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 12 Apr 2023 18:45:44 +0300 Subject: fix for another potential crash --- src/mir_app/src/db_events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/db_events.cpp b/src/mir_app/src/db_events.cpp index 6f6fc281be..263706d844 100644 --- a/src/mir_app/src/db_events.cpp +++ b/src/mir_app/src/db_events.cpp @@ -165,7 +165,7 @@ static INT_PTR DbEventGetTextWorker(DB::EventInfo *dbei, int codepage, int datat DB::FILE_BLOB blob(*dbei); CMStringW wszText(blob.getName()); - if (mir_wstrlen(blob.getDescr()) > 0) { + if (mir_wstrlen(blob.getDescr())) { wszText.Append(L": "); wszText.Append(blob.getDescr()); } -- cgit v1.2.3