Correct crash when texture too small loaded in memory tex viewer

Correct current thread PC in the list.
This commit is contained in:
Xele02 committed 2013-02-17 21:43:44 +01:00
1 parent cba9baaca6
commit 6339c2fc9a
2 files changed
+6 -1

No files matched your search

+4 -1
View File
@@ -2805,7 +2805,10 @@ std::vector<DebugThreadInfo> GetThreadsInfo()
info.name[KERNELOBJECT_MAX_NAME_LENGTH+1] = 0;
info.status = t->nt.status;
info.entrypoint = t->nt.entrypoint;
info.curPC = t->context.pc;
if(*iter == currentThread)
info.curPC = currentMIPS->pc;
else
info.curPC = t->context.pc;
info.isCurrent = (*iter == currentThread);
threadList.push_back(info);
}