| 1302 | } |
| 1303 | |
| 1304 | static long |
| 1305 | write_savefile(short wrRefNum, Ptr bufPtr, long count) |
| 1306 | { |
| 1307 | long wrCount = count; |
| 1308 | |
| 1309 | if (FSWrite(wrRefNum, &wrCount, bufPtr)) { |
| 1310 | endRecover(); |
| 1311 | note(noErr, alidNote, "\pSorry: File Write Error"); |
| 1312 | return (-1L); |
| 1313 | } |
| 1314 | |
| 1315 | return wrCount; |
| 1316 | } |
| 1317 | |
| 1318 | static void |
| 1319 | close_file(short *pFRefNum) |
no test coverage detected