This commit is contained in:
Birunthan Mohanathas 2012-11-13 17:55:57 +02:00
parent fd5de00955
commit 6394b447ba

View File

@ -1799,9 +1799,11 @@ INT_PTR CDialogManage::CTabSettings::OnCommand(WPARAM wParam, LPARAM lParam)
case IDC_MANAGESETTINGS_SKINPATH_TEXT: case IDC_MANAGESETTINGS_SKINPATH_TEXT:
if (HIWORD(wParam) == EN_CHANGE) if (HIWORD(wParam) == EN_CHANGE)
{ {
WCHAR buffer[MAX_LINE_LENGTH]; WCHAR buffer[MAX_PATH];
std::wstring skinPath = (GetWindowText((HWND)lParam, buffer, MAX_LINE_LENGTH) > 0) ? buffer : Rainmeter->GetSkinPath(); if (GetWindowText((HWND)lParam, buffer, _countof(buffer)) > 0)
Rainmeter->SetSkinPath(skinPath); {
Rainmeter->SetSkinPath(buffer);
}
} }
break; break;