summaryrefslogtreecommitdiff
path: root/plugins/Weather/src/weather_ini.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2016-03-24 23:32:20 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2016-03-24 23:32:20 +0000
commit79412831126e49d990a44506af1ae69f78797d6c (patch)
tree9b08aab70ee1be9fc36adb51cf4d3f4337991383 /plugins/Weather/src/weather_ini.cpp
parent2e7f9dcf085ba41ab37bd3234c5fd27781896114 (diff)
Weather: - minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@16539 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src/weather_ini.cpp')
-rw-r--r--plugins/Weather/src/weather_ini.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Weather/src/weather_ini.cpp b/plugins/Weather/src/weather_ini.cpp
index 0775fff823..3d6e94b216 100644
--- a/plugins/Weather/src/weather_ini.cpp
+++ b/plugins/Weather/src/weather_ini.cpp
@@ -557,8 +557,8 @@ INT_PTR CALLBACK DlgProcSetup(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
if (chop) {
*chop = '\0';
mir_tstrncat(szPath, _T("\\Plugins\\weather\\"), _countof(szPath) - mir_tstrlen(szPath));
- _tmkdir(szPath);
- ShellExecute((HWND)lParam, _T("open"), szPath, _T(""), _T(""), SW_SHOW);
+ if (_tmkdir(szPath) == 0)
+ ShellExecute((HWND)lParam, _T("open"), szPath, _T(""), _T(""), SW_SHOW);
}
break;
}
@@ -572,7 +572,7 @@ INT_PTR CALLBACK DlgProcSetup(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
case IDC_STEP4:
WeatherAdd(0, 0);
-
+ // fall through
case IDCANCEL:
// close the info window
DestroyWindow(hwndDlg);