summaryrefslogtreecommitdiff
path: root/plugins/AVS/poll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AVS/poll.cpp')
-rw-r--r--plugins/AVS/poll.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}