1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix BGA driver crashes without vbox guest additions.

This commit is contained in:
Jonas 'Sortie' Termansen 2017-01-22 20:26:39 +01:00
parent bdc791f692
commit e9ee189d29

View file

@ -231,13 +231,9 @@ bool BGADevice::Initialize()
#if defined(__i386__) || defined(__x86_64__) #if defined(__i386__) || defined(__x86_64__)
guest_additions = VBox::GetGuestAdditions(); guest_additions = VBox::GetGuestAdditions();
if ( !guest_additions ) if ( guest_additions &&
return false; !guest_additions->RegisterVideoDevice(device_index) )
if ( !guest_additions->RegisterVideoDevice(device_index) )
{
guest_additions = NULL; guest_additions = NULL;
return false;
}
#endif #endif
Video::ConfigureDevice(this); Video::ConfigureDevice(this);