win32: remove unused urlmon dep
Some checks are pending
pyrite-dev/milsko/pipeline/head Build started...

This commit is contained in:
IoI_xD 2026-07-23 18:24:56 +09:00
commit 39a458d80f

View file

@ -13,7 +13,6 @@ typedef struct userdata {
static struct symtbl {
void* lib_dwmapi;
void* shell32lib;
void* urlmonlib;
MwBool has_drag_and_drop;
HRESULT(WINAPI* DwmSetWindowAttribute)(HWND hwnd, DWORD dwAttribute, LPCVOID pvAttribute, DWORD cbAttribute);
@ -1055,20 +1054,12 @@ static int MwLLGDICallInitImpl(void) {
if(!(wsymtbl.shell32lib = LoadLibrary("shell32.dll"))) {
goto dnd_error;
};
if(!(wsymtbl.urlmonlib = LoadLibrary("Urlmon.dll"))) {
goto dnd_error;
};
#define SHELL32_FUNC(x) \
if(!(wsymtbl.x = (void*)GetProcAddress(wsymtbl.shell32lib, #x))) { \
printf(#x "not found, drag and drop will not be supported"); \
goto dnd_error; \
}
#define URLMON_FUNC(x) \
if(!(wsymtbl.x = (void*)GetProcAddress(wsymtbl.urlmonlib, #x))) { \
printf(#x "not found, drag and drop will not be supported"); \
goto dnd_error; \
}
SHELL32_FUNC(DragQueryFileW);
SHELL32_FUNC(DragAcceptFiles);