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:
parent
2bdf4a5bb4
commit
bc4bbe79aa
|
@ -23,10 +23,6 @@
|
||||||
#define _WIN32_WINNT 0x0500 //_WIN32_WINNT_WIN2K
|
#define _WIN32_WINNT 0x0500 //_WIN32_WINNT_WIN2K
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || _MSC_VER > 1400
|
|
||||||
#define UNICODE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ static void dinput_joypad_destroy(void)
|
||||||
IDirectInputDevice8_Unacquire(g_pads[i].joypad);
|
IDirectInputDevice8_Unacquire(g_pads[i].joypad);
|
||||||
IDirectInputDevice8_Release(g_pads[i].joypad);
|
IDirectInputDevice8_Release(g_pads[i].joypad);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(g_pads[i].joy_name);
|
free(g_pads[i].joy_name);
|
||||||
g_pads[i].joy_name = NULL;
|
g_pads[i].joy_name = NULL;
|
||||||
free(g_pads[i].joy_friendly_name);
|
free(g_pads[i].joy_friendly_name);
|
||||||
|
|
Loading…
Reference in New Issue