From d5a07646832901cfaceb36cfa6be032612b7118c Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 9 Dec 2006 17:17:41 +0000 Subject: cygwin workaround --- fipstest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fipstest.cpp') diff --git a/fipstest.cpp b/fipstest.cpp index 58f561a2..109e592b 100644 --- a/fipstest.cpp +++ b/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; -- cgit v1.2.1