Skip to content
Permalink
Browse files
Whoops, forgot to uncomment this from my testing...
  • Loading branch information
icculus committed Mar 26, 2007
1 parent d8845b0 commit aad1408594f892283402f32b88213e9991f1f2e9
Showing with 4 additions and 6 deletions.
  1. +4 −6 platform/windows.c
@@ -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; \
}

@@ -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);

0 comments on commit aad1408

Please sign in to comment.