PeRunner: Ignore writev iovecs with base == NULL. This seems to be what linux does and musl expects on fflush(). Fixes some saveram related stuff in sameboy
This commit is contained in:
parent
04b605005b
commit
06a369dbe2
|
@ -507,7 +507,10 @@ namespace BizHawk.Emulation.Cores.Waterbox
|
|||
{
|
||||
long ret = 0;
|
||||
for (int i = 0; i < iovcnt; i++)
|
||||
ret += Write(fd, iov[i].Base, iov[i].Length);
|
||||
{
|
||||
if (iov[i].Base != IntPtr.Zero)
|
||||
ret += Write(fd, iov[i].Base, iov[i].Length);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue