From dbf11b4782d8ac9607aa3bf19b9a7465a40c79ee Mon Sep 17 00:00:00 2001 From: ergo720 Date: Wed, 2 Aug 2017 08:20:44 +0000 Subject: [PATCH] Variables renaming --- src/Cxbx/WndMain.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/Cxbx/WndMain.cpp b/src/Cxbx/WndMain.cpp index e3c6a51d0..1e18479fc 100644 --- a/src/Cxbx/WndMain.cpp +++ b/src/Cxbx/WndMain.cpp @@ -155,30 +155,28 @@ WndMain::WndMain(HINSTANCE x_hInstance) : { if(lErrCodeCxbxDebugFilename != ERROR_FILE_NOT_FOUND && strlen(m_CxbxDebugFilename) > strlen("\\CxbxDebug.txt")) { - char *m_CxbxDebugPath = (char*)calloc(1, MAX_PATH); + char *CxbxDebugPath = (char*)calloc(1, MAX_PATH); - strncpy(m_CxbxDebugPath, m_CxbxDebugFilename, strlen(m_CxbxDebugFilename) - strlen("\\CxbxDebug.txt")); + strncpy(CxbxDebugPath, m_CxbxDebugFilename, strlen(m_CxbxDebugFilename) - strlen("\\CxbxDebug.txt")); - if(PathFileExists((LPCSTR)m_CxbxDebugPath) == FALSE) + if(PathFileExists((LPCSTR)CxbxDebugPath) == FALSE) { memset((char*)m_CxbxDebugFilename, '\0', MAX_PATH); } - - free(m_CxbxDebugPath); + free(CxbxDebugPath); } if(lErrCodeKrnlDebugFilename != ERROR_FILE_NOT_FOUND && strlen(m_KrnlDebugFilename) > strlen("\\KrnlDebug.txt")) { - char *m_KrnlDebugPath = (char*)calloc(1, MAX_PATH); + char *KrnlDebugPath = (char*)calloc(1, MAX_PATH); - strncpy(m_KrnlDebugPath, m_KrnlDebugFilename, strlen(m_KrnlDebugFilename) - strlen("\\KrnlDebug.txt")); + strncpy(KrnlDebugPath, m_KrnlDebugFilename, strlen(m_KrnlDebugFilename) - strlen("\\KrnlDebug.txt")); - if(PathFileExists((LPCSTR)m_KrnlDebugPath) == FALSE) + if(PathFileExists((LPCSTR)KrnlDebugPath) == FALSE) { memset((char*)m_KrnlDebugFilename, '\0', MAX_PATH); } - - free(m_KrnlDebugPath); + free(KrnlDebugPath); } }