fixed bug in the packaging code
parent
8bcf23a848
commit
3370e48236
|
@ -153,10 +153,12 @@ execute(char *dir, char *str){
|
||||||
|
|
||||||
static void
|
static void
|
||||||
slash_fix(char *path){
|
slash_fix(char *path){
|
||||||
|
if (path){
|
||||||
for (int32_t i = 0; path[i]; ++i){
|
for (int32_t i = 0; path[i]; ++i){
|
||||||
if (path[i] == '/') path[i] = '\\';
|
if (path[i] == '/') path[i] = '\\';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
make_folder_if_missing(char *dir, char *folder){
|
make_folder_if_missing(char *dir, char *folder){
|
||||||
|
@ -175,11 +177,11 @@ make_folder_if_missing(char *dir, char *folder){
|
||||||
for (; *p; ++p){
|
for (; *p; ++p){
|
||||||
if (*p == '\\'){
|
if (*p == '\\'){
|
||||||
*p = 0;
|
*p = 0;
|
||||||
CreateDirectoryA(folder, 0);
|
CreateDirectoryA(path.str, 0);
|
||||||
*p = '\\';
|
*p = '\\';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CreateDirectoryA(folder, 0);
|
CreateDirectoryA(path.str, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue