From dfd2c45454990ade4c6fd3c6b604185d0fbfa3f4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 9 Aug 2017 16:32:08 +0200 Subject: [PATCH] Go through DragAcceptFiles function pointer for ui_win32_window too --- ui/drivers/win32/ui_win32_window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/drivers/win32/ui_win32_window.cpp b/ui/drivers/win32/ui_win32_window.cpp index 8a0d1e981a..f868344fed 100644 --- a/ui/drivers/win32/ui_win32_window.cpp +++ b/ui/drivers/win32/ui_win32_window.cpp @@ -75,11 +75,14 @@ static void ui_window_win32_set_title(void *data, char *buf) SetWindowText(window->hwnd, buf); } +extern "C" VOID (WINAPI *DragAcceptFiles_func)(HWND, BOOL); + void ui_window_win32_set_droppable(void *data, bool droppable) { /* Minimum supported client: Windows XP, minimum supported server: Windows 2000 Server */ ui_window_win32_t *window = (ui_window_win32_t*)data; - DragAcceptFiles(window->hwnd, droppable); + if (DragAcceptFiles_func != NULL) + DragAcceptFiles_func(window->hwnd, droppable); } static bool ui_window_win32_focused(void *data)