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:
parent
bdc791f692
commit
e9ee189d29
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue