mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +00:00
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:
commit
ba25d90cc8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user