summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/Windows/threads.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mir_core/src/Windows/threads.cpp b/src/mir_core/src/Windows/threads.cpp
index c33a80faed..b48a9c7b79 100644
--- a/src/mir_core/src/Windows/threads.cpp
+++ b/src/mir_core/src/Windows/threads.cpp
@@ -230,8 +230,7 @@ static void __cdecl KillObjectThreadsWorker(void* owner)
// forcibly kill all remaining threads after 5 secs
mir_cslock lck(csThreads);
- auto T = threads.rev_iter();
- for (auto &it : T) {
+ for (auto &it : threads.rev_iter()) {
if (it->pObject == owner) {
char szModuleName[MAX_PATH];
GetModuleFileNameA(it->hOwner, szModuleName, sizeof(szModuleName));