summaryrefslogtreecommitdiff
path: root/libusb/os/windows_usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'libusb/os/windows_usb.h')
-rw-r--r--libusb/os/windows_usb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h
index 2de40dd..8d62f9f 100644
--- a/libusb/os/windows_usb.h
+++ b/libusb/os/windows_usb.h
@@ -332,9 +332,9 @@ struct driver_lookup {
#define DLL_LOAD(dll, name, ret_on_failure) \
do { \
- HMODULE h = GetModuleHandle(#dll); \
+ HMODULE h = GetModuleHandleA(#dll); \
if (!h) \
- h = LoadLibrary(#dll); \
+ h = LoadLibraryA(#dll); \
if (!h) { \
if (ret_on_failure) { return LIBUSB_ERROR_NOT_FOUND; }\
else { break; } \