Fix encoding issues in win_progsett.c and win_icon.c

This commit is contained in:
Laci bá
2021-11-19 21:33:21 +01:00
parent 5ee200eabd
commit 7ffbd62ceb
2 changed files with 5 additions and 5 deletions

View File

@@ -135,7 +135,7 @@ void win_load_icon_set()
for (i = 0; i < count; i++)
{
plat_append_filename(temp, path_root, icon_files[i].filename);
mbstowcs(wtemp, temp, strlen(temp) + 1);
mbstoc16s(wtemp, temp, strlen(temp) + 1);
HICON ictemp;
ictemp = LoadImageW(NULL, (LPWSTR)wtemp, IMAGE_ICON, x, y, LR_LOADFROMFILE | LR_DEFAULTCOLOR);