[VBEMP][VGAMP] Correctly fill VdmPhysicalVideoMemoryAddress/VdmPhysicalVideoMemoryLength

These variables must be filled by miniport if miniport is VGA-compatible.
This commit is contained in:
Hervé Poussineau 2021-07-05 23:31:10 +02:00
parent 8d24de7805
commit 93f986463a
2 changed files with 4 additions and 0 deletions

View file

@ -76,6 +76,8 @@ VBEFindAdapter(
if (VideoPortIsNoVesa())
return ERROR_DEV_NOT_EXIST;
ConfigInfo->VdmPhysicalVideoMemoryAddress.QuadPart = 0xa000;
ConfigInfo->VdmPhysicalVideoMemoryLength = 0x2000;
return NO_ERROR;
}

View file

@ -85,6 +85,8 @@ VGAFindAdapter(PVOID DeviceExtension,
/* FIXME: Determine if the adapter is present */
*Again = FALSE;
ConfigInfo->VdmPhysicalVideoMemoryAddress.QuadPart = 0xa000;
ConfigInfo->VdmPhysicalVideoMemoryLength = 0x2000;
return NO_ERROR;
/* FIXME: Claim any necessary memory/IO resources for the adapter */