Author: fireball
Date: Sun Sep 9 16:42:45 2007
New Revision: 28976
URL:
http://svn.reactos.org/svn/reactos?rev=28976&view=rev
Log:
- HACK: Create a missing VRefresh key when installing VMWare's video driver. This
solution was proposed long time ago by Herve Poussineau and very recently by Gregor
Brunmar. Now VMWare's video driver finally can work as expected, resolution setting
works also (tested up to 1400x1050).
- TODO: VRefresh key is absent in the installation .inf, and should be somehow either
ignored, or created by something else (not the installer).
Modified:
trunk/reactos/base/setup/vmwinst/vmwinst.c
Modified: trunk/reactos/base/setup/vmwinst/vmwinst.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/vmwinst/vmwinst…
==============================================================================
--- trunk/reactos/base/setup/vmwinst/vmwinst.c (original)
+++ trunk/reactos/base/setup/vmwinst/vmwinst.c Sun Sep 9 16:42:45 2007
@@ -277,6 +277,7 @@
SaveResolutionSettings(DWORD ResX, DWORD ResY, DWORD ColDepth)
{
HKEY hReg;
+ DWORD VFreq = 85;
if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,
L"SYSTEM\\CurrentControlSet\\Services\\vmx_svga\\Device0",
@@ -297,6 +298,12 @@
}
if(RegSetValueEx(hReg, L"DefaultSettings.YResolution", 0, REG_DWORD,
(BYTE*)&ResY, sizeof(DWORD)) != ERROR_SUCCESS)
+ {
+ RegCloseKey(hReg);
+ return FALSE;
+ }
+
+ if(RegSetValueEx(hReg, L"DefaultSettings.VRefresh", 0, REG_DWORD,
(BYTE*)&VFreq, sizeof(DWORD)) != ERROR_SUCCESS)
{
RegCloseKey(hReg);
return FALSE;