DXGL r334 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r333‎ | r334 | r335 >
Date:22:50, 24 February 2013
Author:admin
Status:new
Tags:
Comment:
Fix AppCompat DWM8And16BitMitigation killer.
Modified paths:
  • /cfgmgr/cfgmgr.cpp (modified) (history)

Diff [purge]

Index: cfgmgr/cfgmgr.cpp
@@ -335,9 +335,10 @@
336336 if(error == ERROR_ACCESS_DENIED)
337337 {
338338 tstring command;
339 - if(is64) command.assign(_T("DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /reg:64 /f /v "));
340 - else command.assign(_T("DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /f /v "));
 339+ if(is64) command.assign(_T("DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /reg:64 /f /v \""));
 340+ else command.assign(_T("DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /f /v \""));
341341 command.append(filename);
 342+ command.append(_T("\""));
342343 SHELLEXECUTEINFO info;
343344 ZeroMemory(&info,sizeof(SHELLEXECUTEINFO));
344345 info.cbSize = sizeof(SHELLEXECUTEINFO);