Fixed a mistake in win/win_dialog.c.

This commit is contained in:
OBattler
2021-04-21 01:36:10 +02:00
parent 6ff172b833
commit b0870d5055

View File

@@ -222,7 +222,7 @@ file_dlg_mb(HWND hwnd, char *f, char *fn, char *title, int save)
{
WCHAR uf[512], ufn[512], title_buf[512];
mbstoc16s(uf, f, strlen(fn) + 1);
mbstoc16s(uf, f, strlen(f) + 1);
mbstoc16s(ufn, fn, strlen(fn) + 1);
if (title)
mbstoc16s(title_buf, title, sizeof title_buf);