| 1735 | } |
| 1736 | |
| 1737 | BOOL CMergeApp::WriteProfileString(const tchar_t* lpszSection, const tchar_t* lpszEntry, const tchar_t* lpszValue) |
| 1738 | { |
| 1739 | COptionsMgr *pOptions = GetOptionsMgr(); |
| 1740 | if (lpszEntry != nullptr) |
| 1741 | { |
| 1742 | String name = strutils::format(_T("%s/%s"), lpszSection, lpszEntry); |
| 1743 | if (!pOptions->Get(name).IsString()) |
| 1744 | pOptions->InitOption(name, lpszValue ? lpszValue : _T("")); |
| 1745 | return pOptions->SaveOption(name, lpszValue ? lpszValue : _T("")) == COption::OPT_OK; |
| 1746 | } |
| 1747 | else |
| 1748 | { |
| 1749 | String name = strutils::format(_T("%s/"), lpszSection); |
| 1750 | pOptions->RemoveOption(name); |
| 1751 | } |
| 1752 | return TRUE; |
| 1753 | } |
| 1754 | |
| 1755 | void CMergeApp::AddZombieThread(CWinThread* pThread) |
| 1756 | { |
no test coverage detected