We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8472b78 commit d0a3f2dCopy full SHA for d0a3f2d
ecere/src/sys/System.c
@@ -120,7 +120,7 @@ bool System_DeleteFile(const char * fileName)
120
121
bool System_MakeDir(const char * path)
122
{
123
- bool result = false;
+ bool result = true;
124
char location[MAX_LOCATION] = "";
125
int locationLen = 0;
126
int c = 0;
@@ -138,7 +138,7 @@ bool System_MakeDir(const char * path)
138
location[c] = '\0';
139
locationLen = c;
140
141
- for(; path[c]; )
+ for(; result && path[c]; )
142
143
char directory[MAX_FILENAME];
144
int len = 0;
0 commit comments