INT_PTR GetAvatarBitmap(WPARAM hContact, LPARAM) { if (hContact == 0 || g_shutDown || fei == NULL) return 0; hContact = GetContactThatHaveTheAvatar(hContact); // Get the node CacheNode *node = FindAvatarInCache(hContact, TRUE); if (node == NULL || !node->loaded) return (INT_PTR)GetProtoDefaultAvatar(hContact); return (INT_PTR)node; }
INT_PTR GetAvatarBitmap(WPARAM wParam, LPARAM lParam) { if (wParam == 0 || g_shutDown || fei == NULL) return 0; HANDLE hContact = (HANDLE) wParam; hContact = GetContactThatHaveTheAvatar(hContact); // Get the node CacheNode *node = FindAvatarInCache(hContact, TRUE); if (node == NULL || !node->loaded) return (INT_PTR) GetProtoDefaultAvatar(hContact); else return (INT_PTR) &node->ace; }