an argument check in xf_UpdateWindowArea

This commit is contained in:
Ilya Shipitsin 2017-02-17 13:38:05 +05:00
parent 087671bcbb
commit 9b12feb237

View File

@ -945,6 +945,10 @@ void xf_UpdateWindowArea(xfContext* xfc, xfAppWindow* appWindow, int x, int y,
int width, int height)
{
int ax, ay;
if (appWindow == NULL)
return;
ax = x + appWindow->windowOffsetX;
ay = y + appWindow->windowOffsetY;