Patch by tinus: use the right access mode. fixes bug 627

svn path=/trunk/; revision=15155
This commit is contained in:
Thomas Bluemel 2005-05-08 21:55:28 +00:00
parent a2d9c4e1e9
commit 6dd1154d67

View 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;
}