https://git.reactos.org/?p=reactos.git;a=commitdiff;h=17e0e4428caf08d0b3548…
commit 17e0e4428caf08d0b35487b1428531bd9e51b873
Author: Stanislav Motylkov <x86corez(a)gmail.com>
AuthorDate: Thu May 26 23:34:12 2022 +0300
Commit: Stanislav Motylkov <x86corez(a)gmail.com>
CommitDate: Fri May 27 18:56:13 2022 +0300
[PC98VID] Fix video driver settings
- Store settings in non hardware-profile registry key.
- Rename driver file to vgapnp.sys to keep in sync with VBE.
- This makes PC-98 video driver working again.
Addendum to 073a1ea3 and f03750de. CORE-18201 CORE-17977
---
win32ss/drivers/miniport/pc98vid/CMakeLists.txt | 4 ++--
win32ss/drivers/miniport/pc98vid/pc98disp.inf | 4 ++--
win32ss/drivers/miniport/pc98vid/pc98vid_reg.inf | 6 +++---
win32ss/drivers/miniport/vbe/CMakeLists.txt | 8 ++++++--
win32ss/drivers/miniport/vga_new/CMakeLists.txt | 6 +-----
5 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/win32ss/drivers/miniport/pc98vid/CMakeLists.txt
b/win32ss/drivers/miniport/pc98vid/CMakeLists.txt
index db0f8ae4a39..b1966da028d 100644
--- a/win32ss/drivers/miniport/pc98vid/CMakeLists.txt
+++ b/win32ss/drivers/miniport/pc98vid/CMakeLists.txt
@@ -8,8 +8,8 @@ list(APPEND SOURCE
add_library(pc98vid MODULE ${SOURCE} pc98vid.rc)
set_module_type(pc98vid kernelmodedriver)
-# Actual binary filename is vga.sys
-set_target_properties(pc98vid PROPERTIES OUTPUT_NAME "vga" PDB_OUTPUT_DIRECTORY
"${CMAKE_CURRENT_BINARY_DIR}")
+# Actual binary filename is vgapnp.sys
+set_target_properties(pc98vid PROPERTIES OUTPUT_NAME "vgapnp"
PDB_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
add_pch(pc98vid pc98vid.h SOURCE)
add_importlibs(pc98vid ntoskrnl videoprt)
diff --git a/win32ss/drivers/miniport/pc98vid/pc98disp.inf
b/win32ss/drivers/miniport/pc98vid/pc98disp.inf
index 81a8608625a..d67f9882517 100644
--- a/win32ss/drivers/miniport/pc98vid/pc98disp.inf
+++ b/win32ss/drivers/miniport/pc98vid/pc98disp.inf
@@ -27,7 +27,7 @@ DefaultDestDir = 12
CopyFiles = pc98vid_CopyFiles.NT
[pc98vid_CopyFiles.NT]
-vga.sys
+vgapnp.sys
[Pc98Vid_Inst.NT.Services]
AddService = vga, 0x00000002, vga_Service_Inst
@@ -36,7 +36,7 @@ AddService = vga, 0x00000002, vga_Service_Inst
ServiceType = 1
StartType = 1
ErrorControl = 0
-ServiceBinary = %12%\vga.sys
+ServiceBinary = %12%\vgapnp.sys
LoadOrderGroup = Video
[vga.SoftwareSettings]
diff --git a/win32ss/drivers/miniport/pc98vid/pc98vid_reg.inf
b/win32ss/drivers/miniport/pc98vid/pc98vid_reg.inf
index becce43fdff..753dfb80bf4 100644
--- a/win32ss/drivers/miniport/pc98vid/pc98vid_reg.inf
+++ b/win32ss/drivers/miniport/pc98vid/pc98vid_reg.inf
@@ -2,9 +2,9 @@
[AddReg]
HKLM,"SYSTEM\CurrentControlSet\Services\vga","ErrorControl",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\vga","Group",0x00000000,"Video
Save"
-HKLM,"SYSTEM\CurrentControlSet\Services\vga","ImagePath",0x00020000,"system32\drivers\vga.sys"
+HKLM,"SYSTEM\CurrentControlSet\Services\vga","ImagePath",0x00020000,"system32\drivers\vgapnp.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\vga","Start",0x00010001,0x00000004
HKLM,"SYSTEM\CurrentControlSet\Services\vga","Type",0x00010001,0x00000001
-HKLM,"SYSTEM\CurrentControlSet\Hardware
Profiles\Current\System\CurrentControlSet\Services\vga\Device0","InstalledDisplayDrivers",0x00010000,"framebuf"
-HKLM,"SYSTEM\CurrentControlSet\Hardware
Profiles\Current\System\CurrentControlSet\Services\vga\Device0","VgaCompatible",0x00010001,1
+HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","InstalledDisplayDrivers",0x00010000,"framebuf"
+HKLM,"SYSTEM\CurrentControlSet\Services\vga\Device0","VgaCompatible",0x00010001,1
diff --git a/win32ss/drivers/miniport/vbe/CMakeLists.txt
b/win32ss/drivers/miniport/vbe/CMakeLists.txt
index 415c9cc8d4f..3b79632d850 100644
--- a/win32ss/drivers/miniport/vbe/CMakeLists.txt
+++ b/win32ss/drivers/miniport/vbe/CMakeLists.txt
@@ -9,5 +9,9 @@ set_module_type(vgapnp kernelmodedriver)
add_importlibs(vgapnp videoprt)
add_pch(vgapnp vbemp.h SOURCE)
target_link_libraries(vgapnp libcntpr)
-add_cd_file(TARGET vgapnp DESTINATION reactos/system32/drivers FOR all)
-add_registry_inf(vbemp_reg.inf)
+
+# pc98vid takes place of vga service on PC-98 platform
+if(NOT SARCH STREQUAL "pc98")
+ add_cd_file(TARGET vgapnp DESTINATION reactos/system32/drivers FOR all)
+ add_registry_inf(vbemp_reg.inf)
+endif()
diff --git a/win32ss/drivers/miniport/vga_new/CMakeLists.txt
b/win32ss/drivers/miniport/vga_new/CMakeLists.txt
index b0e304ba906..b278c71e87e 100644
--- a/win32ss/drivers/miniport/vga_new/CMakeLists.txt
+++ b/win32ss/drivers/miniport/vga_new/CMakeLists.txt
@@ -15,8 +15,4 @@ target_link_libraries(vga libcntpr)
set_module_type(vga kernelmodedriver)
add_importlibs(vga videoprt)
add_pch(vga vga.h SOURCE)
-
-# pc98vid takes place of vga.sys on PC-98 platform
-if(NOT SARCH STREQUAL "pc98")
- add_cd_file(TARGET vga DESTINATION reactos/system32/drivers FOR all)
-endif()
+add_cd_file(TARGET vga DESTINATION reactos/system32/drivers FOR all)