Skip to content

Commit

Permalink
Fix key in .reg files
Browse files Browse the repository at this point in the history
  • Loading branch information
dev7355608 committed Sep 22, 2017
1 parent a8de063 commit 76bebde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def extract(data, *keys, default=None):
with open(os.path.join(application_path,
'restore_gamma_range.reg'), mode='w') as f:
f.write('Windows Registry Editor Version 5.00\n\n')
f.write('[{}]\n'.format(icm))
f.write('[HKEY_LOCAL_MACHINE\{}]\n'.format(icm))
f.write('"GdiIcmGammaRange"=')

if gamma_range is None:
Expand All @@ -161,7 +161,7 @@ def extract(data, *keys, default=None):
with open(os.path.join(application_path,
'set_max_gamma_range.reg'), mode='w') as f:
f.write('Windows Registry Editor Version 5.00\n\n')
f.write('[{}]\n'.format(icm))
f.write('[HKEY_LOCAL_MACHINE\{}]\n'.format(icm))
f.write('"GdiIcmGammaRange"=dword:{:08x}'.format(256))

print('Gamma range is currently limited. To fix that, please\n'
Expand Down

0 comments on commit 76bebde

Please sign in to comment.