Patch by tinus: use the right access mode. fixes bug 627
authorThomas Bluemel <thomas@reactsoft.com>
Sun, 8 May 2005 21:55:28 +0000 (21:55 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Sun, 8 May 2005 21:55:28 +0000 (21:55 +0000)
svn path=/trunk/; revision=15155

reactos/subsys/system/vmwinst/vmwinst.c

index 1405c2b..bcc8863 100644 (file)
@@ -314,7 +314,7 @@ SaveResolutionSettings(DWORD ResX, DWORD ResY, DWORD ColDepth)
 
   if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,
                   L"SYSTEM\\CurrentControlSet\\Hardware Profiles\\Current\\System\\CurrentControlSet\\Services\\vmx_svga\\Device0",
-                  0, KEY_QUERY_VALUE, &hReg) != ERROR_SUCCESS)
+                  0, KEY_SET_VALUE, &hReg) != ERROR_SUCCESS)
   {
     return FALSE;
   }