From 07db5fdfccc9ee90c6b0a36aaad6b4f71b258cd3 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 14 Sep 2026 08:52:41 -0400 Subject: DragQueryFile A -> W Signed-off-by: Andrew Opalach --- src/window_win32.c | 18 +++++++++++------- subprojects/libalabaster.wrap | 4 ++-- subprojects/libnaunet.wrap | 4 ++-- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/window_win32.c b/src/window_win32.c index bf9ad87..e28d3d4 100644 --- a/src/window_win32.c +++ b/src/window_win32.c @@ -1316,15 +1316,19 @@ static void win32_handle_message(struct stl_window_win32 *w32, MSG *Message) #ifdef STELA_DRAG_AND_DROP case WM_DROPFILES: { HDROP Drop = (HDROP)Message->wParam; - str path = AL_STR_EMPTY; - u32 count = DragQueryFileA(Drop, 0xffffffff, NULL, 0); + wstr buf = AL_WSTR_EMPTY; + u32 count = DragQueryFileW(Drop, 0xffffffff, NULL, 0); for (u32 i = 0; i < count; i++) { - path.length = DragQueryFileA(Drop, i, NULL, 0); - path.alloc = al_str_reserve(&path, path.length + 1); - DragQueryFileA(Drop, i, path.data, path.alloc); - stl_window_send_drag_and_drop_event(&w32->w, &path); + buf.length = DragQueryFileW(Drop, i, NULL, 0); + buf.alloc = al_wstr_reserve(&buf, buf.length + 1); + DragQueryFileW(Drop, i, buf.data, buf.alloc); + str path = AL_STR_EMPTY; + if (al_str_from_wstr(&path, &buf)) { + stl_window_send_drag_and_drop_event(&w32->w, &path); + al_str_free(&path); + } } - al_str_free(&path); + al_wstr_free(&buf); DragFinish(Drop); break; } diff --git a/subprojects/libalabaster.wrap b/subprojects/libalabaster.wrap index 7b8a7bf..432a813 100644 --- a/subprojects/libalabaster.wrap +++ b/subprojects/libalabaster.wrap @@ -1,5 +1,5 @@ [wrap-git] -directory = libalabaster-81a7b4b +directory = libalabaster-8386718 url = https://git.akon.city/libalabaster.git -revision = 81a7b4ba322aeddf52207fdcd2213e5f5a493471 +revision = 8386718d2b7e5af4e74544922197df678a761c5f depth = 1 diff --git a/subprojects/libnaunet.wrap b/subprojects/libnaunet.wrap index 7217ef4..f2f2fff 100644 --- a/subprojects/libnaunet.wrap +++ b/subprojects/libnaunet.wrap @@ -1,5 +1,5 @@ [wrap-git] -directory = libnaunet-36f09a0 +directory = libnaunet-a2dad19 url = https://git.akon.city/libnaunet.git -revision = 36f09a0c35657f5c7379624c8a2463aafb953bd4 +revision = a2dad19f83ac00101489d7e00751ff9e17719344 depth = 1 -- cgit v1.2.3-101-g0448