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
1 changed files with 2 additions and 6 deletions

View File

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