Whoops, forgot to uncomment this from my testing...

This commit is contained in:
Ryan C. Gordon 2007-03-26 06:38:36 +00:00
parent d8845b0be5
commit aad1408594
1 changed files with 4 additions and 6 deletions

View File

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