diff options
author | Chaplain <aionthefirst@gmail.com> | 2013-09-01 22:45:40 +0300 |
---|---|---|
committer | Chaplain <aionthefirst@gmail.com> | 2013-09-02 19:40:31 +0300 |
commit | aa8bfeec4fe8e818ffc530b30de39cc86d89ff0d (patch) | |
tree | 413d852eed63303b95279cfc332f5ee6871d1425 /src/server/shared/Debugging | |
parent | a0f4177f5d260d64710f201cca442c0348d3f7b0 (diff) |
Auth/Misc: Code cleanup.
*Random performance optimizations
Diffstat (limited to 'src/server/shared/Debugging')
-rw-r--r-- | src/server/shared/Debugging/WheatyExceptionReport.cpp | 3 |
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; |