From 732c8830645354fd2327eb905045754e1804ec91 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 29 Dec 2014 13:02:02 +0000 Subject: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11670 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/dbutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/database/dbutils.cpp') diff --git a/src/modules/database/dbutils.cpp b/src/modules/database/dbutils.cpp index 378a8535dd..445edf5a48 100644 --- a/src/modules/database/dbutils.cpp +++ b/src/modules/database/dbutils.cpp @@ -139,10 +139,10 @@ static INT_PTR DbEventGetText(WPARAM wParam, LPARAM lParam) if (dbei->eventType == EVENTTYPE_AUTHREQUEST) { ptrT tszReason(getEventString(dbei, buf)); text.Format(TranslateT("Authorization request from %s%s: %s"), - (*tszNick == 0) ? cli.pfnGetContactDisplayName(hContact, 0) : tszNick, nick, tszReason); + (tszNick == NULL) ? cli.pfnGetContactDisplayName(hContact, 0) : tszNick, nick, tszReason); } else text.Format(TranslateT("You were added by %s%s"), - (*tszNick == 0) ? cli.pfnGetContactDisplayName(hContact, 0) : tszNick, nick); + (tszNick == NULL) ? cli.pfnGetContactDisplayName(hContact, 0) : tszNick, nick); return (egt->datatype == DBVT_WCHAR) ? (INT_PTR)mir_tstrdup(text) : (INT_PTR)mir_t2a(text); } -- cgit v1.2.3