File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 46
46
47
47
#include " load_pat.h"
48
48
49
- #ifdef MSC_VER
49
+ #ifdef _WIN32
50
50
#define DIRDELIM ' \\ '
51
51
#define TIMIDITYCFG " C:\\ TIMIDITY\\ TIMIDITY.CFG"
52
52
#define PATHFORPAT " C:\\ TIMIDITY\\ INSTRUMENTS"
53
53
#else
54
54
#define DIRDELIM ' /'
55
- #define TIMIDITYCFG " /usr/local/ share/timidity/timidity.cfg"
56
- #define PATHFORPAT " /usr/local/ share/timidity/instruments"
55
+ #define TIMIDITYCFG " /etc/timidity.cfg " /* "/usr/ share/timidity/timidity.cfg"*/
56
+ #define PATHFORPAT " /usr/share/timidity/instruments"
57
57
#endif
58
58
59
59
#define PAT_ENV_PATH2CFG " MMPAT_PATH_TO_CFG"
@@ -764,10 +764,7 @@ BOOL CSoundFile::TestPAT(const BYTE *lpStream, DWORD dwMemLength)
764
764
// =====================================================================================
765
765
static PATHANDLE *PAT_Init (void )
766
766
{
767
- PATHANDLE *retval;
768
- retval = (PATHANDLE *)calloc (1 ,sizeof (PATHANDLE));
769
- if ( !retval ) return NULL ;
770
- return retval;
767
+ return (PATHANDLE *)calloc (1 ,sizeof (PATHANDLE));
771
768
}
772
769
773
770
// =====================================================================================
You can’t perform that action at this time.
0 commit comments