fix another c89 issue
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
This commit is contained in:
parent
6a205453a7
commit
f652523963
1 changed files with 3 additions and 2 deletions
|
|
@ -19,12 +19,13 @@ typedef struct dir {
|
||||||
|
|
||||||
void* MwDirectoryOpen(const char* path) {
|
void* MwDirectoryOpen(const char* path) {
|
||||||
dir_t* dir = malloc(sizeof(*dir));
|
dir_t* dir = malloc(sizeof(*dir));
|
||||||
|
char * p;
|
||||||
if(!dir) {
|
if(!dir) {
|
||||||
printf("Out Of Memory\n");
|
printf("Out Of Memory\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
char* p = MwStringDuplicate(path);
|
p = MwStringDuplicate(path);
|
||||||
if(strchr(path, '/') != NULL) {
|
if(strchr(path, '/') != NULL) {
|
||||||
MwStringConcat(p, "/");
|
MwStringConcat(p, "/");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue