This commit is contained in:
iceman1001 committed 2021-04-08 10:44:31 +02:00
1 parent 31c5722ac0
commit 27184d7f5b
21 files changed
+334 -334

No files matched your search

+1 -1
View File
@@ -1281,7 +1281,7 @@ static int l_cwd(lua_State *L) {
uint16_t path_len = FILENAME_MAX; // should be a good starting point
char *cwd = (char *)calloc(path_len, sizeof(uint8_t));
if (cwd == NULL) {
return returnToLuaWithError(L, "Failed to allocate memory");
return returnToLuaWithError(L, "Failed to allocate memory");
}
while (GetCurrentDir(cwd, path_len) == NULL) {