summaryrefslogtreecommitdiff
path: root/plugins/AVS/src/services.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AVS/src/services.cpp')
-rw-r--r--plugins/AVS/src/services.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/AVS/src/services.cpp b/plugins/AVS/src/services.cpp
index 5302ccfe36..cf7f6cafe9 100644
--- a/plugins/AVS/src/services.cpp
+++ b/plugins/AVS/src/services.cpp
@@ -718,7 +718,7 @@ INT_PTR DrawAvatarPicture(WPARAM, LPARAM lParam)
else ace = (AVATARCACHEENTRY *)GetAvatarBitmap((WPARAM)r->hContact, 0);
if (ace && (!(r->dwFlags & AVDRQ_RESPECTHIDDEN) || !(ace->dwFlags & AVS_HIDEONCLIST))) {
- ace->t_lastAccess = time(nullptr);
+ ace->t_lastAccess = time(0);
if (ace->bmHeight == 0 || ace->bmWidth == 0 || ace->hbmPic == nullptr)
return 0;
@@ -750,12 +750,10 @@ INT_PTR GetMyAvatar(WPARAM wParam, LPARAM lParam)
/////////////////////////////////////////////////////////////////////////////////////////
-static void ReloadMyAvatar(LPVOID lpParam)
+static void ReloadMyAvatar(char *szProto)
{
Thread_SetName("AVS: ReloadMyAvatar");
- char *szProto = (char *)lpParam;
-
mir_sleep(500);
if (g_shutDown)
return;
@@ -785,7 +783,7 @@ static void ReloadMyAvatar(LPVOID lpParam)
NotifyEventHooks(hMyAvatarChanged, (WPARAM)myAvatarProto, 0);
}
- mir_free(lpParam);
+ mir_free(szProto);
}
INT_PTR ReportMyAvatarChanged(WPARAM wParam, LPARAM)
@@ -799,7 +797,7 @@ INT_PTR ReportMyAvatarChanged(WPARAM wParam, LPARAM)
continue;
if (!mir_strcmp(it->szProtoname, proto)) {
- mir_forkthread(ReloadMyAvatar, mir_strdup(it->szProtoname));
+ mir_forkThread<char>(ReloadMyAvatar, mir_strdup(it->szProtoname));
return 0;
}
}