From 1609fb7f5938c668d889151ef5f3cdcf525ac647 Mon Sep 17 00:00:00 2001 From: spx Date: Sat, 24 Sep 2011 13:04:44 +0000 Subject: [PATCH] Minor fixes. --- Library/DialogManage.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Library/DialogManage.cpp b/Library/DialogManage.cpp index 2da8e88a..bdeb1b36 100644 --- a/Library/DialogManage.cpp +++ b/Library/DialogManage.cpp @@ -377,7 +377,7 @@ void CDialogManage::CTabSkins::Initialize() ShowWindow(item, SW_HIDE); item = GetDlgItem(m_Window, IDC_MANAGESKINS_DISPLAYMONITOR_BUTTON); - GetString(ID_STR_DISPLAYMONITOR); + tmpSz = GetString(ID_STR_DISPLAYMONITOR); if (CSystem::GetOSPlatform() >= OSPLATFORM_VISTA) { // Arrow down @@ -914,7 +914,10 @@ INT_PTR CDialogManage::CTabSkins::OnCommand(WPARAM wParam, LPARAM lParam) break; case IDC_MANAGESKINS_REFRESH_BUTTON: - m_SkinWindow->Refresh(false); + if (m_SkinWindow) + { + m_SkinWindow->Refresh(false); + } break; case IDC_MANAGESKINS_EDIT_BUTTON: