mirror of
https://github.com/libretro/RetroArch
synced 2025-02-22 21:40:40 +00:00
Fix a silly bug in the code that tries copying the dll to 30 random files (should not return true at the end)
This commit is contained in:
parent
b0e62f3ec6
commit
af87a19675
@ -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