Index: lang/en-US.rc =================================================================== --- lang/en-US.rc (revision 45691) +++ lang/en-US.rc (working copy) @@ -190,4 +190,5 @@ IDS_APP_REG_REMOVE "Are you sure you want to delete the data on the installed program from the registry?" IDS_INFORMATION "Information" IDS_UNABLE_TO_REMOVE "Unable to remove data on the program from the registry!" + IDS_UNABLECREATE_FOLDER "Unable to create a folder with this name!" END Index: resource.h =================================================================== --- resource.h (revision 45691) +++ resource.h (working copy) @@ -90,6 +90,7 @@ #define IDS_APP_REG_REMOVE 116 #define IDS_INFORMATION 117 #define IDS_UNABLE_TO_REMOVE 118 +#define IDS_UNABLECREATE_FOLDER 119 /* Tooltips */ #define IDS_TOOLTIP_INSTALL 200 Index: settingsdlg.c =================================================================== --- settingsdlg.c (revision 45691) +++ settingsdlg.c (working copy) @@ -109,15 +109,18 @@ } else { - WCHAR szMsgText[MAX_STR_LEN]; - + if (!CreateDirectory((LPCTSTR)szDir,NULL)) + { + WCHAR szMsgText[MAX_STR_LEN]; + LoadStringW(hInst, - IDS_CHOOSE_FOLDER_ERROR, + IDS_UNABLECREATE_FOLDER, szMsgText, sizeof(szMsgText) / sizeof(WCHAR)); MessageBoxW(hDlg, szMsgText, NULL, MB_OK | MB_ICONERROR); SetFocus(GetDlgItem(hDlg, IDC_DOWNLOAD_DIR_EDIT)); - break; + break; + } } SettingsInfo = NewSettingsInfo;