diff --git a/src/plugins/debugger/shared/dbgwinutils.cpp b/src/plugins/debugger/shared/dbgwinutils.cpp index 1c5a1d210e9ad1a63bc4c1abb83f33fba74ea71e..349dd6dac972896b712d66f39b4940fab5bc8b13 100644 --- a/src/plugins/debugger/shared/dbgwinutils.cpp +++ b/src/plugins/debugger/shared/dbgwinutils.cpp @@ -244,6 +244,11 @@ QString winNormalizeFileName(const QString &f) bool isWinProcessBeingDebugged(unsigned long pid) { + // Exclude VS 2005 +#if defined(_MSC_VER) && _MSC_VER < 1400 + Q_UNUSED(pid); + return false; +#else HANDLE processHandle = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid); if (processHandle == NULL) return false; @@ -251,6 +256,7 @@ bool isWinProcessBeingDebugged(unsigned long pid) CheckRemoteDebuggerPresent(processHandle, &debugged); CloseHandle(processHandle); return debugged != FALSE; +#endif } } // namespace Internal