Fix unicode filename compare when wchar_t is not 16bit

Do not use wcscmp() which takes wchar_t arguments.
wchar_t bit width is system dependent. It is often 32bits.
Grafx2 supports 16bits wide characters

fixes b49fa1dfcc
This commit is contained in:
Thomas Bernard
2019-04-26 23:56:47 +02:00
parent e76adfe9d9
commit 653593ba66
3 changed files with 16 additions and 1 deletions

View File

@@ -827,7 +827,7 @@ void Read_list_of_drives(T_Fileselector *list, byte name_length)
#else
// case-sensitive
#define FILENAME_COMPARE strcmp
#define FILENAME_COMPARE_UNICODE wcscmp
#define FILENAME_COMPARE_UNICODE Unicode_strcmp
#endif