diff options
author | David Kocik <kocikdav@gmail.com> | 2021-01-27 12:39:39 +0300 |
---|---|---|
committer | David Kocik <kocikdav@gmail.com> | 2021-01-27 12:40:38 +0300 |
commit | fa2568a5e33acf6af96c097505665cba6f607028 (patch) | |
tree | 1f5afdc77159e3babfe72c910ba8c800085746e3 /src/hidapi | |
parent | 4f161607c703a1863f79e783f6dc329d824583a0 (diff) |
Check loading of blacklisted dlls and show warning dialog at startup. Also show these dlls in sysinfo dialog.
Diffstat (limited to 'src/hidapi')
-rw-r--r-- | src/hidapi/win/hid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hidapi/win/hid.c b/src/hidapi/win/hid.c index 4a71e2552..881aedf5b 100644 --- a/src/hidapi/win/hid.c +++ b/src/hidapi/win/hid.c @@ -130,7 +130,7 @@ extern "C" { static HMODULE lib_handle = NULL; static BOOLEAN initialized = FALSE; #endif /* HIDAPI_USE_DDK */ - + struct hid_device_ { HANDLE device_handle; BOOL blocking; @@ -200,6 +200,7 @@ static void register_error(hid_device *dev, const char *op) } #ifndef HIDAPI_USE_DDK + static int lookup_functions() { lib_handle = LoadLibraryA("hid.dll"); |