Fix incorrect handle comparison.

This commit is contained in:
2021-04-25 18:08:05 +01:00
parent 4baec69185
commit 0602959063

View File

@@ -60,7 +60,7 @@ void Filenames(const char* path)
{
handle = Fcreate((char*)filenames[pos], 0);
if(handle < 0)
if(handle > 0)
{
memset(message, 0, 300);
sprintf(message, FILENAME_FORMAT, filenames[pos]);