mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +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,
|
bool write_file_with_random_name(char **tempDllPath,
|
||||||
const char *retroarchTempPath, const void* data, ssize_t dataSize)
|
const char *retroarchTempPath, const void* data, ssize_t dataSize)
|
||||||
{
|
{
|
||||||
|
bool okay = false;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
char number_buf[32];
|
char number_buf[32];
|
||||||
const char *prefix = "tmp";
|
const char *prefix = "tmp";
|
||||||
@ -170,11 +171,14 @@ bool write_file_with_random_name(char **tempDllPath,
|
|||||||
strcat_alloc(tempDllPath, number_buf);
|
strcat_alloc(tempDllPath, number_buf);
|
||||||
strcat_alloc(tempDllPath, ext);
|
strcat_alloc(tempDllPath, ext);
|
||||||
if (filestream_write_file(*tempDllPath, data, dataSize))
|
if (filestream_write_file(*tempDllPath, data, dataSize))
|
||||||
|
{
|
||||||
|
okay = true;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FREE(ext);
|
FREE(ext);
|
||||||
return true;
|
return okay;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool secondary_core_create(void)
|
bool secondary_core_create(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user