win32: remove unused urlmon dep
Some checks are pending
pyrite-dev/milsko/pipeline/head Build started...
Some checks are pending
pyrite-dev/milsko/pipeline/head Build started...
This commit is contained in:
parent
f6c129b31c
commit
39a458d80f
1 changed files with 0 additions and 9 deletions
|
|
@ -13,7 +13,6 @@ typedef struct userdata {
|
||||||
static struct symtbl {
|
static struct symtbl {
|
||||||
void* lib_dwmapi;
|
void* lib_dwmapi;
|
||||||
void* shell32lib;
|
void* shell32lib;
|
||||||
void* urlmonlib;
|
|
||||||
|
|
||||||
MwBool has_drag_and_drop;
|
MwBool has_drag_and_drop;
|
||||||
HRESULT(WINAPI* DwmSetWindowAttribute)(HWND hwnd, DWORD dwAttribute, LPCVOID pvAttribute, DWORD cbAttribute);
|
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"))) {
|
if(!(wsymtbl.shell32lib = LoadLibrary("shell32.dll"))) {
|
||||||
goto dnd_error;
|
goto dnd_error;
|
||||||
};
|
};
|
||||||
if(!(wsymtbl.urlmonlib = LoadLibrary("Urlmon.dll"))) {
|
|
||||||
goto dnd_error;
|
|
||||||
};
|
|
||||||
|
|
||||||
#define SHELL32_FUNC(x) \
|
#define SHELL32_FUNC(x) \
|
||||||
if(!(wsymtbl.x = (void*)GetProcAddress(wsymtbl.shell32lib, #x))) { \
|
if(!(wsymtbl.x = (void*)GetProcAddress(wsymtbl.shell32lib, #x))) { \
|
||||||
printf(#x "not found, drag and drop will not be supported"); \
|
printf(#x "not found, drag and drop will not be supported"); \
|
||||||
goto dnd_error; \
|
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(DragQueryFileW);
|
||||||
SHELL32_FUNC(DragAcceptFiles);
|
SHELL32_FUNC(DragAcceptFiles);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue