kernel: handle memimageinit() error

This commit is contained in:
cinap_lenrek 2013-11-12 21:43:38 +01:00
parent d56a6fadc5
commit cfc705b866

View file

@ -48,7 +48,8 @@ screensize(int x, int y, int, ulong chan)
nexterror(); nexterror();
} }
memimageinit(); if(memimageinit() < 0)
error("memimageinit failed");
lock(&vgascreenlock); lock(&vgascreenlock);
if(waserror()){ if(waserror()){