From 8f3d6729cbee5e070ad7663029baa4c8431ac456 Mon Sep 17 00:00:00 2001
From: George Hazan <george.hazan@gmail.com>
Date: Sat, 11 Jan 2014 16:36:19 +0000
Subject: the same idea without double pointers

git-svn-id: http://svn.miranda-ng.org/main/trunk@7594 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 protocols/JabberG/src/jabber_util.cpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'protocols')

diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp
index ff95a160ee..d73ff4cce4 100644
--- a/protocols/JabberG/src/jabber_util.cpp
+++ b/protocols/JabberG/src/jabber_util.cpp
@@ -1016,8 +1016,6 @@ BOOL CJabberProto::EnterString(CMString &result, LPCTSTR caption, int type, char
 		result.Empty();
 	}
 
-	TCHAR *pData = mir_tstrdup(result);
-
 	ENTER_STRING param = { sizeof(param) };
 	param.type = type;
 	param.caption = caption;
@@ -1025,11 +1023,11 @@ BOOL CJabberProto::EnterString(CMString &result, LPCTSTR caption, int type, char
 	param.szDataPrefix = windowName;
 	param.recentCount = recentCount;
 	param.timeout = timeout;
-	param.result = &pData;
+	param.ptszInitVal = result;
 	BOOL res = ::EnterString(&param);
 	if (res) {
-		result = pData;
-		mir_free(pData);
+		result = param.ptszResult;
+		mir_free(param.ptszResult);
 	}
 	return res;
 }
-- 
cgit v1.2.3