| Previous | 199869 Revisions | Next |
| r39883 Tuesday 14th July, 2015 at 21:41:06 UTC by Thomas Klausner |
|---|
| Fix error handling of osd_truncate. Noted by startaq in https://github.com/mamedev/mame/pull/257. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> |
| [src/osd/osdmini] | minifile.c |
| r248394 | r248395 | |
|---|---|---|
| 113 | 113 | return FILERR_FAILURE; |
| 114 | 114 | |
| 115 | 115 | result = ftruncate(fileno((FILE *)file), offset); |
| 116 | if ( | |
| 116 | if (result) | |
| 117 | 117 | return FILERR_FAILURE; |
| 118 | 118 | |
| 119 | 119 | return FILERR_NONE; |
| Previous | 199869 Revisions | Next |