From fa199b4c7a7aaa9270f3f8a0da2abeec10e6aff1 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Tue, 26 Aug 2025 18:09:20 +0600 Subject: [PATCH] Fix builds --- src/video/vid_ddc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/vid_ddc.c b/src/video/vid_ddc.c index 3d1973edc..d98f36171 100644 --- a/src/video/vid_ddc.c +++ b/src/video/vid_ddc.c @@ -258,8 +258,13 @@ ddc_init(void *i2c) wchar_t errmsg[2048] = { 0 }; wchar_t path[2048] = { 0 }; +#ifdef _WIN32 mbstoc16s(path, monitor_edid_path, sizeof_w(path)); +#else + mbstowcs(path, monitor_edid_path, sizeof_w(path)); +#endif swprintf(errmsg, sizeof_w(errmsg), plat_get_string(STRING_EDID_TOO_LARGE), path); + ui_msgbox_header(MBX_ERROR, L"EDID", errmsg); fclose(file); goto default_init; }