From 2914091c4a1e847dd71c721200971e45a6536aca Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 9 Dec 2006 17:17:41 +0000 Subject: [PATCH] cygwin workaround --- trunk/c5/fipstest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/c5/fipstest.cpp b/trunk/c5/fipstest.cpp index 58f561a2..109e592b 100644 --- a/trunk/c5/fipstest.cpp +++ b/trunk/c5/fipstest.cpp @@ -277,6 +277,7 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule char moduleFilenameBuf[MAX_PATH] = ""; if (moduleFilename == NULL) { +#ifdef _MSC_VER // ifstream doesn't support wide filename on gcc 3.4.4 cygwin wchar_t wideModuleFilename[MAX_PATH]; if (GetModuleFileNameW(s_hModule, wideModuleFilename, MAX_PATH) > 0) { @@ -284,6 +285,7 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule h = GetModuleHandleW(wideModuleFilename); } else +#endif { GetModuleFileNameA(s_hModule, moduleFilenameBuf, MAX_PATH); moduleFilename = moduleFilenameBuf;