Patch by tinus: use the right access mode. fixes bug 627
Modified: trunk/reactos/subsys/system/vmwinst/vmwinst.c

Modified: trunk/reactos/subsys/system/vmwinst/vmwinst.c
--- trunk/reactos/subsys/system/vmwinst/vmwinst.c	2005-05-08 21:54:32 UTC (rev 15154)
+++ trunk/reactos/subsys/system/vmwinst/vmwinst.c	2005-05-08 21:55:28 UTC (rev 15155)
@@ -314,7 +314,7 @@
 
   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;
   }