free(pKeys);
}
-static void evict_cache_slots(RdpgfxClientContext* context, UINT16 MaxCacheSlot, void** CacheSlots)
+static void evict_cache_slots(RdpgfxClientContext* context, UINT16 MaxCacheSlots, void** CacheSlots)
{
UINT16 index;
- for (index = 0; index < MaxCacheSlot; index++)
+ for (index = 0; index < MaxCacheSlots; index++)
{
if (CacheSlots[index])
{
DEBUG_RDPGFX(gfx->log, "OnClose");
free_surfaces(context, gfx->SurfaceTable);
- evict_cache_slots(context, gfx->MaxCacheSlot, gfx->CacheSlots);
+ evict_cache_slots(context, gfx->MaxCacheSlots, gfx->CacheSlots);
if (gfx->listener_callback)
{
RDPGFX_PLUGIN* gfx = (RDPGFX_PLUGIN*)context->handle;
/* Microsoft uses 1-based indexing for the egfx bitmap cache ! */
- if (cacheSlot == 0 || cacheSlot > gfx->MaxCacheSlot)
+ if (cacheSlot == 0 || cacheSlot > gfx->MaxCacheSlots)
{
- WLog_ERR(TAG, "%s: invalid cache slot %" PRIu16 ", must be between 1 and %" PRIu16 "", __FUNCTION__,
- cacheSlot, gfx->MaxCacheSlot);
+ WLog_ERR(TAG, "%s: invalid cache slot %" PRIu16 ", must be between 1 and %" PRIu16 "",
+ __FUNCTION__, cacheSlot, gfx->MaxCacheSlots);
return ERROR_INVALID_INDEX;
}
RDPGFX_PLUGIN* gfx = (RDPGFX_PLUGIN*)context->handle;
/* Microsoft uses 1-based indexing for the egfx bitmap cache ! */
- if (cacheSlot == 0 || cacheSlot > gfx->MaxCacheSlot)
+ if (cacheSlot == 0 || cacheSlot > gfx->MaxCacheSlots)
{
- WLog_ERR(TAG, "%s: invalid cache slot %" PRIu16 ", must be between 1 and %" PRIu16 "", __FUNCTION__,
- cacheSlot, gfx->MaxCacheSlot);
+ WLog_ERR(TAG, "%s: invalid cache slot %" PRIu16 ", must be between 1 and %" PRIu16 "",
+ __FUNCTION__, cacheSlot, gfx->MaxCacheSlots);
return NULL;
}
if (gfx->H264)
gfx->SmallCache = TRUE;
- gfx->MaxCacheSlot = gfx->SmallCache ? 4096 : 25600;
+ gfx->MaxCacheSlots = gfx->SmallCache ? 4096 : 25600;
context = (RdpgfxClientContext*)calloc(1, sizeof(RdpgfxClientContext));
if (!context)
gfx = (RDPGFX_PLUGIN*)context->handle;
free_surfaces(context, gfx->SurfaceTable);
- evict_cache_slots(context, gfx->MaxCacheSlot, gfx->CacheSlots);
+ evict_cache_slots(context, gfx->MaxCacheSlots, gfx->CacheSlots);
if (gfx->listener_callback)
{