fix build errors (nw)

This commit is contained in:
Jeffrey Clark 2016-03-05 14:36:09 -06:00
parent 892233c4d4
commit b1182ed63b
2 changed files with 4 additions and 4 deletions

View File

@ -59,9 +59,9 @@ def parse_file(srcfile):
if not all(((c >='a' and c<='z') or (c>='0' and c<='9') or c=='_') for c in drivname):
sys.stderr.write("%s:%d - Invalid character in driver \"%s\"\n" % (srcfile, linenum, drivname))
return 1
else:
else:
if (curr_source == '') or (len(sourcelist)==0) or (curr_source in sourcelist):
drivlist.append(drivname)
drivlist.append(drivname)
return 0
def parse_filter_file(srcfile):
@ -113,7 +113,7 @@ def parse_filter_file(srcfile):
if not all(((c >='a' and c<='z') or (c>='0' and c<='9') or c=='_' or c=='.' or c=='-') for c in sourcename):
sys.stderr.write("%s:%d - Invalid character in driver \"%s\"\n" % (srcfile, linenum, sourcename))
return 1
else:
else:
sourcelist.append(sourcename)
return 0

View File

@ -16,7 +16,7 @@
#include <windows.h>
// XInput header
#include <Xinput.h>
#include <xinput.h>
#undef interface