gop: Ensure QueryMode() is called properly

This commit is contained in:
mintsuki 2022-06-02 09:52:32 +02:00
parent 3b60c7bb80
commit 57f384eed5

View File

@ -160,10 +160,10 @@ bool init_gop(struct fb_info *ret,
if (status) {
panic(false, "gop: Initialisation failed");
}
status = gop->QueryMode(gop, gop->Mode == NULL ? 0 : gop->Mode->Mode,
&mode_info_size, &mode_info);
}
status = gop->QueryMode(gop, gop->Mode->Mode, &mode_info_size, &mode_info);
if (status) {
panic(false, "gop: Initialisation failed");
}