diff options
| author | 2016-11-09 14:53:19 +0100 | |
|---|---|---|
| committer | 2016-11-09 14:53:19 +0100 | |
| commit | 0d1f5b6be45d6af06b425000525915140d346d08 (patch) | |
| tree | f31d95b5307735e620adaa445147d495c76e84fa /3rdparty/luafilesystem | |
| parent | 5799b36a3a90ef9782341ea019784128e7a9b3ec (diff) | |
Make 3rdparty compile for UWP and start adding new OSD for UWP based on previous Brad work (nw)
Diffstat (limited to '3rdparty/luafilesystem')
| -rw-r--r-- | 3rdparty/luafilesystem/src/lfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
