Skip to content

Commit

Permalink
Fix the path of notepad.exe
Browse files Browse the repository at this point in the history
Signed-off-by: Selva Nair <[email protected]>
  • Loading branch information
selvanair committed Feb 15, 2016
1 parent 4437ce7 commit 09334e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ GetRegistryKeys()
if (!GetRegKey(_T("priority"), o.priority_string,
_T("NORMAL_PRIORITY_CLASS"), _countof(o.priority_string))) return(false);

_sntprintf_0(temp_path, _T("%s\\notepad.exe"), windows_dir);
_sntprintf_0(temp_path, _T("%s\\system32\\notepad.exe"), windows_dir);
if (!GetRegKey(_T("log_viewer"), o.log_viewer,
temp_path, _countof(o.log_viewer))) return(false);

_sntprintf_0(temp_path, _T("%s\\notepad.exe"), windows_dir);
_sntprintf_0(temp_path, _T("%s\\system32\\notepad.exe"), windows_dir);
if (!GetRegKey(_T("editor"), o.editor,
temp_path, _countof(o.editor))) return(false);

Expand Down

0 comments on commit 09334e7

Please sign in to comment.