From 0d1f5b6be45d6af06b425000525915140d346d08 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 9 Nov 2016 14:53:19 +0100 Subject: Make 3rdparty compile for UWP and start adding new OSD for UWP based on previous Brad work (nw) --- 3rdparty/luafilesystem/src/lfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '3rdparty') diff --git a/3rdparty/luafilesystem/src/lfs.c b/3rdparty/luafilesystem/src/lfs.c index ca89223e8f2..4eed5d99a9c 100644 --- a/3rdparty/luafilesystem/src/lfs.c +++ b/3rdparty/luafilesystem/src/lfs.c @@ -288,7 +288,7 @@ static int lfs_lock_dir(lua_State *L) { lua_pushnil(L); lua_pushstring(L, strerror(errno)); return 2; } strcpy(ln, path); strcat(ln, lockfile); - if((fd = CreateFile(ln, GENERIC_WRITE, 0, NULL, CREATE_NEW, + if((fd = CreateFileA(ln, GENERIC_WRITE, 0, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_DELETE_ON_CLOSE, NULL)) == INVALID_HANDLE_VALUE) { int en = GetLastError(); free(ln); lua_pushnil(L); -- cgit v1.2.3