From 3370e48236e2e49ba9dd7733b0426c5657d7219b Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 29 Oct 2016 13:58:28 -0400 Subject: [PATCH] fixed bug in the packaging code --- build.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.cpp b/build.cpp index f1933172..775b345b 100644 --- a/build.cpp +++ b/build.cpp @@ -153,10 +153,12 @@ execute(char *dir, char *str){ static void slash_fix(char *path){ + if (path){ for (int32_t i = 0; path[i]; ++i){ if (path[i] == '/') path[i] = '\\'; } } +} static void make_folder_if_missing(char *dir, char *folder){ @@ -175,11 +177,11 @@ make_folder_if_missing(char *dir, char *folder){ for (; *p; ++p){ if (*p == '\\'){ *p = 0; - CreateDirectoryA(folder, 0); + CreateDirectoryA(path.str, 0); *p = '\\'; } } - CreateDirectoryA(folder, 0); + CreateDirectoryA(path.str, 0); } static void