From 0d8e26588a018c1ce4866aa923eff1c06e1cc148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 17 Apr 2023 07:55:07 +0200 Subject: [PATCH] [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;