From b633d64ad17eccca33dd27d0bb92db2c3ce61f2b Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 17 Jun 2012 19:56:55 +0300 Subject: [PATCH] Minor fixes --- SkinInstaller/DialogPackage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SkinInstaller/DialogPackage.cpp b/SkinInstaller/DialogPackage.cpp index 894f4b11..6f3206c0 100644 --- a/SkinInstaller/DialogPackage.cpp +++ b/SkinInstaller/DialogPackage.cpp @@ -231,7 +231,7 @@ bool CDialogPackage::CreatePackage() 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); } @@ -1238,7 +1238,7 @@ INT_PTR CDialogPackage::CTabAdvanced::OnCommand(WPARAM wParam, LPARAM lParam) { int length = GetWindowTextLength((HWND)lParam); 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;