void cliInvalidateDisplayNameCacheEntry(HANDLE hContact) { pdisplayNameCacheEntry p; p = (pdisplayNameCacheEntry) pcli->pfnGetCacheEntry(hContact); if (p) InvalidateDNCEbyPointer(hContact,p,0); return; }
void cliInvalidateDisplayNameCacheEntry(MCONTACT hContact) { if (hContact == INVALID_CONTACT_ID) corecli.pfnInvalidateDisplayNameCacheEntry(INVALID_CONTACT_ID); else { ClcCacheEntry *p = pcli->pfnGetCacheEntry(hContact); if (p) InvalidateDNCEbyPointer(hContact, p, 0); } }
void cliInvalidateDisplayNameCacheEntry(HANDLE hContact) { pdisplayNameCacheEntry p; //if (IsBadWritePtr((void*)hContact,sizeof(displayNameCacheEntry))) p = (pdisplayNameCacheEntry) pcli->pfnGetCacheEntry(hContact); //else // p=(pdisplayNameCacheEntry)hContact; //handle give us incorrect hContact on GetCacheEntry; if (p) InvalidateDNCEbyPointer(hContact,p,0); return; }
ClcCacheEntry* cliCreateCacheItem(MCONTACT hContact) { ClcCacheEntry *p = (ClcCacheEntry *)mir_calloc(sizeof(ClcCacheEntry)); if (p == NULL) return NULL; p->hContact = hContact; InvalidateDNCEbyPointer(hContact, p, 0); p->szSecondLineText = NULL; p->szThirdLineText = NULL; p->ssSecondLine.plText = NULL; p->ssThirdLine.plText = NULL; return p; }
ClcCacheEntryBase* cliCreateCacheItem( HANDLE hContact ) { pdisplayNameCacheEntry p = (pdisplayNameCacheEntry)mir_calloc(sizeof( displayNameCacheEntry )); if ( p ) { memset(p,0,sizeof( displayNameCacheEntry )); p->m_cache_hContact = hContact; InvalidateDNCEbyPointer(hContact,p,0); p->szSecondLineText=NULL; p->szThirdLineText=NULL; p->ssSecondLine.plText=NULL; p->ssThirdLine.plText=NULL; } return (ClcCacheEntryBase*)p; }
ClcCacheEntryBase* cliCreateCacheItem( HANDLE hContact ) { pdisplayNameCacheEntry p = (pdisplayNameCacheEntry)mir_calloc( 1, sizeof( displayNameCacheEntry )); if ( p ) { memset(p,0,sizeof( displayNameCacheEntry )); p->hContact = hContact; InvalidateDNCEbyPointer(hContact,p,0); //TODO should be in core p->szSecondLineText=NULL; p->szThirdLineText=NULL; p->plSecondLineText=NULL; p->plThirdLineText=NULL; } return (ClcCacheEntryBase*)p; }