More Amiga OS fixes

This commit is contained in:
PulkoMandy
2022-10-24 20:52:09 +02:00
parent e782bfd66b
commit b36c464ccd
3 changed files with 9 additions and 5 deletions

View File

@@ -1072,14 +1072,12 @@ char * Get_current_directory(char * buf, word * * unicode, size_t size)
}
free(cur_dir);
return buf;
#elif defined (__amigaos__)
char * ret = "";
if (unicode != NULL)
*unicode = NULL; // no unicode support
#else
char * ret = getcwd(buf, size);
#if !defined (__amigaos__)
if (ret == NULL)
GFX2_Log(GFX2_ERROR, "getcwd(%p, %lu) failed !\n", buf, (unsigned long)size);
#endif
#ifdef ENABLE_FILENAMES_ICONV
if (ret != NULL && unicode != NULL)
{