From: Thomas Edvalson Date: Mon, 7 Dec 2015 00:45:45 +0000 (-0500) Subject: Fix mkdir X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=3c9e82333bbccc1259bf3505407c427998d0fca3;p=console%2FXDS.git Fix mkdir --- diff --git a/source/util/Common.cpp b/source/util/Common.cpp index bee3030..649e782 100644 --- a/source/util/Common.cpp +++ b/source/util/Common.cpp @@ -10,6 +10,7 @@ #include #endif +#include #include #include #include @@ -134,7 +135,7 @@ namespace Common { #ifdef _WIN32 int ret = _mkdir(mname); #else - int ret = mkdir(p, 0777); + int ret = mkdir(mname, 0777); #endif if (ret >0 && ret != EEXIST) {