boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / msvc_dbg.c
index b172025ba532ec202f8f02589f404a883090e919..2420a44b87f54f7a99fbca1e837df48ca9000af2 100644 (file)
@@ -77,7 +77,12 @@ static ULONG_ADDR CALLBACK GetModuleBase(HANDLE hProcess, ULONG_ADDR dwAddress)
                // Save and restore current directory around SymLoadModule, see KB article Q189780
                GetCurrentDirectoryA(sizeof(curDir), curDir);
                GetModuleFileNameA(NULL, exePath, sizeof(exePath));
+#if defined(_MSC_VER) && _MSC_VER == 1200
+               /* use strcat for VC6 */
+               strcat(exePath, "\\..");
+#else
                strcat_s(exePath, sizeof(exePath), "\\..");
+#endif /* _MSC_VER >= 1200 */
                SetCurrentDirectoryA(exePath);
 #ifdef _DEBUG
                GetCurrentDirectoryA(sizeof(exePath), exePath);