https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0d8e26588a018c1ce4866aa923eff1c06e1cc148

commit 0d8e26588a018c1ce4866aa923eff1c06e1cc148
Author:     Hervé Poussineau <hpous...@reactos.org>
AuthorDate: Mon Apr 17 07:55:07 2023 +0200
Commit:     Hervé Poussineau <hpous...@reactos.org>
CommitDate: Mon Oct 14 23:26:10 2024 +0200

    [WIN32SS:USER] Remove assignation of gpPrimaryGraphicsDevice (already done 
in EngpUpdateGraphicsDeviceList)
---
 win32ss/user/ntuser/display.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/win32ss/user/ntuser/display.c b/win32ss/user/ntuser/display.c
index 8ce655fbb27..5a9a5911262 100644
--- a/win32ss/user/ntuser/display.c
+++ b/win32ss/user/ntuser/display.c
@@ -168,22 +168,6 @@ InitVideo(VOID)
     if (!NT_SUCCESS(Status))
         return Status;
 
-    /* Check if we had any success */
-    if (!gpPrimaryGraphicsDevice)
-    {
-        /* Check if there is a VGA device we skipped */
-        if (gpVgaGraphicsDevice)
-        {
-            /* There is, use the VGA device */
-            gpPrimaryGraphicsDevice = gpVgaGraphicsDevice;
-        }
-        else
-        {
-            ERR("No usable display driver was found.\n");
-            return STATUS_UNSUCCESSFUL;
-        }
-    }
-
     InitSysParams();
 
     return STATUS_SUCCESS;

Reply via email to