don't define UNICODE at all, we don't need it and it causes dinput problems (names are wchar_t)

This commit is contained in:
Brad Parker 2017-12-05 14:26:41 -05:00
parent 2bdf4a5bb4
commit bc4bbe79aa
2 changed files with 1 additions and 5 deletions

View File

@ -23,10 +23,6 @@
#define _WIN32_WINNT 0x0500 //_WIN32_WINNT_WIN2K
#endif
#if !defined(_MSC_VER) || _MSC_VER > 1400
#define UNICODE
#endif
#include <tchar.h>
#include <wchar.h>

View File

@ -97,7 +97,7 @@ static void dinput_joypad_destroy(void)
IDirectInputDevice8_Unacquire(g_pads[i].joypad);
IDirectInputDevice8_Release(g_pads[i].joypad);
}
free(g_pads[i].joy_name);
g_pads[i].joy_name = NULL;
free(g_pads[i].joy_friendly_name);