diff --git a/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp b/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp index b7af5c0..41a75e9 100644 --- a/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp +++ b/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp @@ -247,13 +247,14 @@ __declspec(dllexport) void TITCALL DebugLoop() } //maintain thread list - int threadcount=hListThread.size(); - for(int i=0; i-1; i--) + for(int i = LibrarianData.size() - 1; i >= 0; i--) { ptrLibrarianData=&LibrarianData.at(i); if(!lstrcmpiA(ptrLibrarianData->szLibraryName, szAnsiLibraryName)) @@ -378,10 +378,10 @@ __declspec(dllexport) void TITCALL DebugLoop() { RtlZeroMemory(szAnsiLibraryName, sizeof(szAnsiLibraryName)); WideCharToMultiByte(CP_ACP, NULL, hLoadedLibData->szLibraryName, -1, szAnsiLibraryName, sizeof szAnsiLibraryName, NULL, NULL); - int libbpcount=LibrarianData.size(); - for(int i=libbpcount-1; i>-1; i--) + + for(int i= LibrarianData.size() - 1; i >= 0; i--) { - ptrLibrarianData=&LibrarianData.at(i); + ptrLibrarianData = &LibrarianData.at(i); if(!lstrcmpiA(ptrLibrarianData->szLibraryName, szAnsiLibraryName)) { if(ptrLibrarianData->bpxType == UE_ON_LIB_UNLOAD || ptrLibrarianData->bpxType == UE_ON_LIB_ALL) @@ -405,8 +405,7 @@ __declspec(dllexport) void TITCALL DebugLoop() } //maintain library list - int libcount=hListLibrary.size(); - for(int i=0; i