This project has moved and is read-only. For the latest updates, please go here.

CString variable leak ?

Jul 8, 2014 at 8:11 AM
CString strVal;
CString strAbsFile;
TCHAR dir[I_MAX_PATH];
I_CHAR retVal[2048];;
memset( dir, 0, I_MAX_PATH);
memset( retVal, 0, 2048);
IAGetWorkDir( dir);
strAbsFile.Format( _T("%s%s"), dir, strFile);
IAGetPrivateProfileString( strSection.GetBuffer(0), strKey.GetBuffer(0), NULL, retVal, 2048,strAbsFile.GetBuffer(0));
strVal = retVal;
return strVal;