diff options
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/win_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/x11/win_main.c b/platform/x11/win_main.c index 3804f671..50cc7285 100644 --- a/platform/x11/win_main.c +++ b/platform/x11/win_main.c @@ -442,6 +442,7 @@ INT CALLBACK dloginfoproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { char buf[256]; + wchar_t bufx[256]; fz_document *doc = gapp.doc; switch(message) @@ -488,7 +489,8 @@ dloginfoproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) *(char **)buf = STRING; \ if (fz_meta(doc, FZ_META_INFO, buf, 256) <= 0) \ buf[0] = 0; \ - SetDlgItemTextA(hwnd, ID, buf); \ + MultiByteToWideChar(CP_UTF8, 0, buf, -1, bufx, nelem(bufx)); \ + SetDlgItemTextW(hwnd, ID, bufx); \ } SETUTF8(0x20, "Title"); |