mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
CFileHelpers::createDir: Fix return value
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0180d59111
Author: [CST] Bas <bas@coolstreamtech.com>
Date: 2015-10-18 (Sun, 18 Oct 2015)
------------------
This commit was generated by Migit
This commit is contained in:
committed by
Michael Liebmann
parent
f12db2adea
commit
55acf87eac
@@ -161,10 +161,10 @@ int CThemes::Show()
|
||||
CKeyboardInput nameInput(LOCALE_COLORTHEMEMENU_NAME, &file_name);
|
||||
CMenuForwarder *m1 = new CMenuForwarder(LOCALE_COLORTHEMEMENU_SAVE, true , NULL, &nameInput, NULL, CRCInput::RC_green);
|
||||
|
||||
if (CFileHelpers::createDir(THEMESDIR_VAR) && errno != EEXIST) {
|
||||
if (!CFileHelpers::createDir(THEMESDIR_VAR)) {
|
||||
printf("[neutrino theme] error creating %s\n", THEMESDIR_VAR);
|
||||
|
||||
}
|
||||
|
||||
if (access(THEMESDIR_VAR, F_OK) == 0 ) {
|
||||
themes.addItem(GenericMenuSeparatorLine);
|
||||
themes.addItem(m1);
|
||||
@@ -365,7 +365,7 @@ void CThemes::move_userDir()
|
||||
{
|
||||
if (access(USERDIR, F_OK) == 0)
|
||||
{
|
||||
if (CFileHelpers::createDir(THEMESDIR_VAR) && errno != EEXIST)
|
||||
if (!CFileHelpers::createDir(THEMESDIR_VAR))
|
||||
{
|
||||
printf("[neutrino theme] error creating %s\n", THEMESDIR_VAR);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user