From 1784cdf49b8196219563795cf3b11b7c4c2a6746 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Thu, 14 Jun 2012 08:19:18 +0000 Subject: "#ifsef Unicode" removal - first commit git-svn-id: http://svn.miranda-ng.org/main/trunk@408 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AVS/poll.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/AVS/poll.cpp') diff --git a/plugins/AVS/poll.cpp b/plugins/AVS/poll.cpp index 32553a9c33..d93ef5309c 100644 --- a/plugins/AVS/poll.cpp +++ b/plugins/AVS/poll.cpp @@ -246,7 +246,7 @@ int FetchAvatarFor(HANDLE hContact, char *szProto = NULL) pai_s.hContact = hContact; //_DebugTrace(hContact, "schedule request"); INT_PTR res = CallProtoService(szProto, PS_GETAVATARINFOT, GAIF_FORCE, (LPARAM)&pai_s); -#ifdef _UNICODE + if (res == CALLSERVICE_NOTFOUND) { PROTO_AVATAR_INFORMATION pai = {0}; @@ -256,7 +256,7 @@ int FetchAvatarFor(HANDLE hContact, char *szProto = NULL) MultiByteToWideChar( CP_ACP, 0, pai.filename, -1, pai_s.filename, SIZEOF(pai_s.filename)); pai_s.format = pai.format; } -#endif + if (res != CALLSERVICE_NOTFOUND) result = res; ProcessAvatarInfo(pai_s.hContact, result, &pai_s, szProto); } -- cgit v1.2.3