Skip to content

Commit

Permalink
Make ManyMouse work on Windows, even when compiled with Unicode support.
Browse files Browse the repository at this point in the history
Thanks to Stian Fauskanger for the fix!
  • Loading branch information
icculus committed Nov 16, 2011
1 parent b3e7a10 commit ef4498f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions windows_wminput.c
Expand Up @@ -112,7 +112,7 @@ static int find_api_symbols(void)
return 1;

#define LOOKUP(x) { if (!symlookup(dll, (void **) &p##x, #x)) return 0; }
dll = LoadLibrary("user32.dll");
dll = LoadLibrary(TEXT("user32.dll"));
if (dll == NULL)
return 0;

Expand All @@ -131,7 +131,7 @@ static int find_api_symbols(void)
LOOKUP(DispatchMessageA);
LOOKUP(DestroyWindow);

dll = LoadLibrary("kernel32.dll");
dll = LoadLibrary(TEXT("kernel32.dll"));
if (dll == NULL)
return 0;

Expand All @@ -142,7 +142,7 @@ static int find_api_symbols(void)
LOOKUP(LeaveCriticalSection);
LOOKUP(DeleteCriticalSection);

dll = LoadLibrary("setupapi.dll");
dll = LoadLibrary(TEXT("setupapi.dll"));
if (dll == NULL)
return 0;

Expand Down

0 comments on commit ef4498f

Please sign in to comment.