From 55a816f376af4adc8e15fbaade82c630a331b39e Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 17 Apr 2012 16:05:00 -0400 Subject: [PATCH] Remove stale stack dump reports --- Sources/Plasma/Apps/plClient/winmain.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Sources/Plasma/Apps/plClient/winmain.cpp b/Sources/Plasma/Apps/plClient/winmain.cpp index b8af4143..68aaddc5 100644 --- a/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/Sources/Plasma/Apps/plClient/winmain.cpp @@ -1629,24 +1629,6 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC } } - // log stackdump.log text if the log exists - char stackDumpText[1024]; - wchar_t stackDumpTextW[1024]; - memset(stackDumpText, 0, arrsize(stackDumpText)); - memset(stackDumpTextW, 0, arrsize(stackDumpTextW) * sizeof(wchar_t)); - wchar_t fileAndPath[MAX_PATH]; - PathGetLogDirectory(fileAndPath, arrsize(fileAndPath)); - PathAddFilename(fileAndPath, fileAndPath, L"stackDump.log", arrsize(fileAndPath)); - FILE *stackDumpLog = _wfopen(fileAndPath, L"r"); - if(stackDumpLog) - { - fread(stackDumpText, 1, arrsize(stackDumpText) - 1, stackDumpLog); - StrToUnicode(stackDumpTextW, stackDumpText, arrsize(stackDumpText)); - NetCliAuthLogStackDump (stackDumpTextW); - fclose(stackDumpLog); - plFileUtils::RemoveFile(fileAndPath); - } - for (;;) { // Create Window if (!WinInit(hInst, nCmdShow) || gClient->GetDone())