aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-10-14 17:53:11 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-10-14 17:53:11 -0400
commitbb61f8bf85c653d9bb14a47c869bba15cd970054 (patch)
tree19e93980a9552ab1fe448cc9e4b78d9f9f04c88d /src
parent41eda1fdc3c9be6b9bae4f6a3251826b4356966d (diff)
downloadlite-xl-plugin-manager-bb61f8bf85c653d9bb14a47c869bba15cd970054.tar.gz
lite-xl-plugin-manager-bb61f8bf85c653d9bb14a47c869bba15cd970054.zip
Fix windows and linux compiles.
Diffstat (limited to 'src')
-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;