
Currently, SetSurface is called regardless of return value from offscreen_cache_get. It may happen that bitmap is not found in a cache from some reason, which may lead to segfaults. Let's check the returned value before use. https://github.com/FreeRDP/FreeRDP/issues/4117