Skip to content

Commit d0a3f2d

Browse files
committed
ecere/sys: MakeDir(): Fixed return value
1 parent 8472b78 commit d0a3f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecere/src/sys/System.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ bool System_DeleteFile(const char * fileName)
120120

121121
bool System_MakeDir(const char * path)
122122
{
123-
bool result = false;
123+
bool result = true;
124124
char location[MAX_LOCATION] = "";
125125
int locationLen = 0;
126126
int c = 0;
@@ -138,7 +138,7 @@ bool System_MakeDir(const char * path)
138138
location[c] = '\0';
139139
locationLen = c;
140140

141-
for(; path[c]; )
141+
for(; result && path[c]; )
142142
{
143143
char directory[MAX_FILENAME];
144144
int len = 0;

0 commit comments

Comments
 (0)