Fix inability to detect an error in sdl_write_ptty (no whatsnew)

This commit is contained in:
R. Belmont 2011-01-16 21:01:14 +00:00
parent 34cea6102e
commit 2f1b7f3468

View File

@ -72,7 +72,7 @@ file_error sdl_read_ptty(osd_file *file, void *buffer, UINT64 offset, UINT32 cou
file_error sdl_write_ptty(osd_file *file, const void *buffer, UINT64 offset, UINT32 count, UINT32 *actual)
{
UINT32 result;
ssize_t result;
result = write(file->handle, buffer, count);
if (result < 0)