GetPrivateProfileString(_T("eMule"), _T("ScoreAdjustor"), _T(""), scoreAdjustor.GetBufferSetLength(16384), 16384, strFileName);
GetPrivateProfileString(_T("eMule"), _T("License"), _T(""), license.GetBufferSetLength(1024), 1024, strFileName);
替换为
TCHAR buf[16384];
GetPrivateProfileString(_T("eMule"), _T("ScoreAdjustor"), _T(""), buf, 16384, strFileName);
scoreAdjustor = buf;
GetPrivateProfileString(_T("eMule"), _T("License"), _T(""), buf, 1024, strFileName);
license = buf;
没太看明白,是Get以后没有ReleaseBuffer所以有问题?