mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-29 04:01:27 +01:00
Arguments file needs one additional null argument to finish the arguments.
This commit is contained in:
1 parent
fe77c3ef06
commit
490d7e57d7
1 file changed
+4
@@ -645,6 +645,10 @@ namespace FEX::EmulatedFile {
|
||||
// Finish off with a null terminator
|
||||
fwrite("\0", sizeof(uint8_t), 1, fp);
|
||||
}
|
||||
|
||||
// One additional null terminator to finish the list
|
||||
fwrite("\0", sizeof(uint8_t), 1, fp);
|
||||
|
||||
fseek(fp, 0, SEEK_SET);
|
||||
int32_t f = fileno(fp);
|
||||
return f;
|
||||
|
||||
Reference in new issue
Block a user