Fixes: Make Attach External Dialog play nicely (exclude self)

Details: MinGW compilation
This commit is contained in:
Friedemann Kleint
2009-03-04 16:48:13 +01:00
parent 86b6c44e4e
commit 58c4cd8b27
4 changed files with 58 additions and 21 deletions

View File

@@ -65,7 +65,7 @@ QList<ProcData> winProcessList()
for (bool hasNext = Process32First(snapshot, &pe); hasNext; hasNext = Process32Next(snapshot, &pe)) {
ProcData procData;
procData.ppid = QString::number(pe.th32ProcessID);
procData.name = QString::fromUtf16(pe.szExeFile);
procData.name = QString::fromUtf16(reinterpret_cast<ushort*>(pe.szExeFile));
#ifdef USE_PSAPI
procData.image = imageName(pe.th32ProcessID);
#endif