Minor fixes

This commit is contained in:
Birunthan Mohanathas 2012-06-17 19:56:55 +03:00
parent 1e66d1a3c2
commit b633d64ad1

View File

@ -231,7 +231,7 @@ bool CDialogPackage::CreatePackage()
if (!c_Dialog->m_Load.empty()) if (!c_Dialog->m_Load.empty())
{ {
WritePrivateProfileString(L"rmskin", L"LoadType", c_Dialog->m_LoadTheme ? L"Theme" : L"Skin", tempFile); WritePrivateProfileString(L"rmskin", L"LoadType", c_Dialog->m_LoadTheme ? L"Layout" : L"Skin", tempFile);
WritePrivateProfileString(L"rmskin", L"Load", c_Dialog->m_Load.c_str(), tempFile); WritePrivateProfileString(L"rmskin", L"Load", c_Dialog->m_Load.c_str(), tempFile);
} }
@ -1238,7 +1238,7 @@ INT_PTR CDialogPackage::CTabAdvanced::OnCommand(WPARAM wParam, LPARAM lParam)
{ {
int length = GetWindowTextLength((HWND)lParam); int length = GetWindowTextLength((HWND)lParam);
c_Dialog->m_VariableFiles.resize(length); c_Dialog->m_VariableFiles.resize(length);
GetWindowText((HWND)lParam, &c_Dialog->m_VariableFiles[0], length); GetWindowText((HWND)lParam, &c_Dialog->m_VariableFiles[0], length + 1);
} }
break; break;