https://git.reactos.org/?p=reactos.git;a=commitdiff;h=93f986463a94ffb457ea3b3c57e9d147a67f134d

commit 93f986463a94ffb457ea3b3c57e9d147a67f134d
Author:     Hervé Poussineau <[email protected]>
AuthorDate: Mon Jul 5 23:31:10 2021 +0200
Commit:     Hervé Poussineau <[email protected]>
CommitDate: Mon Jul 5 23:46:16 2021 +0200

    [VBEMP][VGAMP] Correctly fill 
VdmPhysicalVideoMemoryAddress/VdmPhysicalVideoMemoryLength
    
    These variables must be filled by miniport if miniport is VGA-compatible.
---
 win32ss/drivers/miniport/vbe/vbemp.c | 2 ++
 win32ss/drivers/miniport/vga/vgamp.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/win32ss/drivers/miniport/vbe/vbemp.c 
b/win32ss/drivers/miniport/vbe/vbemp.c
index 5cb0f9f9cf6..7525b78561c 100644
--- a/win32ss/drivers/miniport/vbe/vbemp.c
+++ b/win32ss/drivers/miniport/vbe/vbemp.c
@@ -76,6 +76,8 @@ VBEFindAdapter(
    if (VideoPortIsNoVesa())
        return ERROR_DEV_NOT_EXIST;
 
+   ConfigInfo->VdmPhysicalVideoMemoryAddress.QuadPart = 0xa000;
+   ConfigInfo->VdmPhysicalVideoMemoryLength = 0x2000;
    return NO_ERROR;
 }
 
diff --git a/win32ss/drivers/miniport/vga/vgamp.c 
b/win32ss/drivers/miniport/vga/vgamp.c
index 8c0c27e9de6..f4cd3a26c41 100644
--- a/win32ss/drivers/miniport/vga/vgamp.c
+++ b/win32ss/drivers/miniport/vga/vgamp.c
@@ -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  */

Reply via email to