Fixed missing argument checks.

This commit is contained in:
Armin Novak 2017-12-20 16:15:22 +01:00
parent ac1d6e8153
commit e23af1d2fc

View File

@ -195,6 +195,10 @@ void xf_rail_invalidate_region(xfContext* xfc, REGION16* invalidRegion)
xfAppWindow* appWindow;
const RECTANGLE_16* extents;
REGION16 windowInvalidRegion;
if (!xfc || !xfc->rail || !xfc->railWindows)
return;
region16_init(&windowInvalidRegion);
count = HashTable_GetKeys(xfc->railWindows, &pKeys);