consistently use TEXT() macro with LoadLibrary() and GetModuleHandle()

cf. bug #5435.
This commit is contained in:
Ozkan Sezer
2021-01-04 01:23:50 +03:00
parent 91a831e2d0
commit 01a2f27679
12 changed files with 15 additions and 15 deletions

View File

@@ -242,7 +242,7 @@ static void register_error(hid_device *device, const char *op)
#ifndef HIDAPI_USE_DDK
static int lookup_functions()
{
lib_handle = LoadLibraryA("hid.dll");
lib_handle = LoadLibrary(TEXT("hid.dll"));
if (lib_handle) {
#define RESOLVE(x) x = (x##_)GetProcAddress(lib_handle, #x); if (!x) return -1;
RESOLVE(HidD_GetAttributes);