Skip to content

Commit

Permalink
Whoops, forgot to uncomment this from my testing...
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 26, 2007
1 parent d8845b0 commit aad1408
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions platform/windows.c
Expand Up @@ -264,10 +264,8 @@ static int findApiSymbols(void)
HMODULE dll = NULL;

#define LOOKUP_NOFALLBACK(x) { symLookup(dll, (void **) &p##x, #x); }
// #define LOOKUP(x) { \
// if (!symLookup(dll, (void **) &p##x, #x)) \
#define LOOKUP(x) { \
if (!symLookup(dll, (void **) &p##x, #x)) \
p##x = fallback##x; \
}

Expand All @@ -285,11 +283,11 @@ static int findApiSymbols(void)
if (dll != NULL)
{
LOOKUP_NOFALLBACK(GetFileAttributesExA);
// LOOKUP_NOFALLBACK(GetFileAttributesExW);
LOOKUP_NOFALLBACK(GetFileAttributesExW);
LOOKUP(GetModuleFileNameW);
LOOKUP(FormatMessageW);
// LOOKUP_NOFALLBACK(FindFirstFileW);
// LOOKUP_NOFALLBACK(FindNextFileW);
LOOKUP_NOFALLBACK(FindFirstFileW);
LOOKUP_NOFALLBACK(FindNextFileW);
LOOKUP(GetFileAttributesW);
LOOKUP(GetCurrentDirectoryW);
LOOKUP(CreateDirectoryW);
Expand Down

0 comments on commit aad1408

Please sign in to comment.