aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Debugging
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2013-09-03 14:59:56 -0700
committerSubv <subv2112@gmail.com>2013-09-03 14:59:56 -0700
commit3ec941bacf99d94e43e9dc948b34d4591aff7af2 (patch)
treeada4be8a994b2a89c27a685012ac1edf7e92cd0a /src/server/shared/Debugging
parent2cfcf9d3ef6f06fbdd5d942177b4f57de03f95d4 (diff)
parentaa8bfeec4fe8e818ffc530b30de39cc86d89ff0d (diff)
Merge pull request #10697 from Chaplain/authserver
Auth/Misc: Code cleanup.
Diffstat (limited to 'src/server/shared/Debugging')
-rw-r--r--src/server/shared/Debugging/WheatyExceptionReport.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/shared/Debugging/WheatyExceptionReport.cpp b/src/server/shared/Debugging/WheatyExceptionReport.cpp
index d4bd630ca25..f4da4093dfa 100644
--- a/src/server/shared/Debugging/WheatyExceptionReport.cpp
+++ b/src/server/shared/Debugging/WheatyExceptionReport.cpp
@@ -350,13 +350,12 @@ void WheatyExceptionReport::PrintSystemInfo()
//===========================================================================
void WheatyExceptionReport::printTracesForAllThreads()
{
- HANDLE hThreadSnap = INVALID_HANDLE_VALUE;
THREADENTRY32 te32;
DWORD dwOwnerPID = GetCurrentProcessId();
m_hProcess = GetCurrentProcess();
// Take a snapshot of all running threads
- hThreadSnap = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);
+ HANDLE hThreadSnap = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);
if (hThreadSnap == INVALID_HANDLE_VALUE)
return;