aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.c b/src/lpm.c
index bb40a39..22532c5 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -855,7 +855,7 @@ static int mkdirp(lua_State* L, char* path, int len) {
if (path[i] == '/' && i > 0) {
path[i] = 0;
#ifdef _WIN32
- LPCSTR wpath = lua_toutf16(L, path);
+ LPCWSTR wpath = lua_toutf16(L, path);
if (_wmkdir(wpath) && errno != EEXIST) {
lua_pop(L, 1);
return -1;