DXGL r745 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r744‎ | r745 | r746 >
Date:04:02, 11 September 2017
Author:admin
Status:new
Tags:
Comment:
Fix INI reading on install and uninstall.
Modified paths:
  • /dxglcfg/dxglcfg.c (modified) (history)
  • /dxglcfg2/dxglcfg2.c (modified) (history)

Diff [purge]

Index: dxglcfg/dxglcfg.c
@@ -1688,7 +1688,7 @@
16891689 _tcsncpy(destpath, regbuffer, MAX_PATH + 1);
16901690 _tcscat(destpath, _T("\\ddraw.dll"));
16911691 _tcsncpy(inipath, regbuffer, MAX_PATH + 1);
1692 - _tcscat(inipath, _T("\\dxgl.ini"));
 1692+ _tcscat(inipath, _T("\\"));
16931693 _tcsncpy(backuppath, regbuffer, MAX_PATH + 1);
16941694 _tcscat(backuppath, _T("\\ddraw.dll.dxgl-backup"));
16951695 ReadAppINIOptions(inipath, &inioptions);
@@ -1793,7 +1793,7 @@
17941794 _tcsncpy(destpath, regbuffer, MAX_PATH + 1);
17951795 _tcscat(destpath, _T("\\ddraw.dll"));
17961796 _tcsncpy(inipath, regbuffer, MAX_PATH + 1);
1797 - _tcscat(inipath, _T("\\dxgl.ini"));
 1797+ _tcscat(inipath, _T("\\"));
17981798 _tcsncpy(backuppath, regbuffer, MAX_PATH + 1);
17991799 _tcscat(backuppath, _T("\\ddraw.dll.dxgl-backup"));
18001800 ReadAppINIOptions(inipath, &inioptions);
Index: dxglcfg2/dxglcfg2.c
@@ -1965,7 +1965,7 @@
19661966 _tcsncpy(destpath, regbuffer, MAX_PATH + 1);
19671967 _tcscat(destpath, _T("\\ddraw.dll"));
19681968 _tcsncpy(inipath, regbuffer, MAX_PATH + 1);
1969 - _tcscat(inipath, _T("\\dxgl.ini"));
 1969+ _tcscat(inipath, _T("\\"));
19701970 _tcsncpy(backuppath, regbuffer, MAX_PATH + 1);
19711971 _tcscat(backuppath, _T("\\ddraw.dll.dxgl-backup"));
19721972 ReadAppINIOptions(inipath, &inioptions);
@@ -2070,7 +2070,7 @@
20712071 _tcsncpy(destpath, regbuffer, MAX_PATH + 1);
20722072 _tcscat(destpath, _T("\\ddraw.dll"));
20732073 _tcsncpy(inipath, regbuffer, MAX_PATH + 1);
2074 - _tcscat(inipath, _T("\\dxgl.ini"));
 2074+ _tcscat(inipath, _T("\\"));
20752075 _tcsncpy(backuppath, regbuffer, MAX_PATH + 1);
20762076 _tcscat(backuppath, _T("\\ddraw.dll.dxgl-backup"));
20772077 ReadAppINIOptions(inipath, &inioptions);