Debugger: Fix compilation with VS2005.

Reviewed-by: Maurice Kalinowski <maurice.kalinowski@nokia.com>
This commit is contained in:
Friedemann Kleint
2010-10-22 17:20:19 +02:00
parent ac9159f872
commit 1a8e48e1a5

View File

@@ -244,6 +244,11 @@ QString winNormalizeFileName(const QString &f)
bool isWinProcessBeingDebugged(unsigned long pid) 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); HANDLE processHandle = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid);
if (processHandle == NULL) if (processHandle == NULL)
return false; return false;
@@ -251,6 +256,7 @@ bool isWinProcessBeingDebugged(unsigned long pid)
CheckRemoteDebuggerPresent(processHandle, &debugged); CheckRemoteDebuggerPresent(processHandle, &debugged);
CloseHandle(processHandle); CloseHandle(processHandle);
return debugged != FALSE; return debugged != FALSE;
#endif
} }
} // namespace Internal } // namespace Internal