diff --git a/reactos/subsys/system/vmwinst/vmwinst.c b/reactos/subsys/system/vmwinst/vmwinst.c index 1405c2b7c26..bcc88631020 100644 --- a/reactos/subsys/system/vmwinst/vmwinst.c +++ b/reactos/subsys/system/vmwinst/vmwinst.c @@ -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; }