Merge pull request #6593 from Dwedit/silly_bug_fix

Fix a silly bug in the code that tries to copy the DLL 30 times
This commit is contained in:
Twinaphex 2018-04-18 06:44:53 +02:00 committed by GitHub
commit ba25d90cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,6 +139,7 @@ failed:
bool write_file_with_random_name(char **tempDllPath,
const char *retroarchTempPath, const void* data, ssize_t dataSize)
{
bool okay = false;
unsigned i;
char number_buf[32];
const char *prefix = "tmp";
@ -170,11 +171,14 @@ bool write_file_with_random_name(char **tempDllPath,
strcat_alloc(tempDllPath, number_buf);
strcat_alloc(tempDllPath, ext);
if (filestream_write_file(*tempDllPath, data, dataSize))
{
okay = true;
break;
}
}
FREE(ext);
return true;
return okay;
}
bool secondary_core_create(void)