Just preserves the current read functions and replaces the current read functions with the default read funcs.
| 69 | // Just preserves the current read functions and replaces |
| 70 | // the current read functions with the default read funcs. |
| 71 | void ILAPIENTRY iPreserveReadFuncs() |
| 72 | { |
| 73 | // Create backups |
| 74 | GetcProcCopy = GetcProc; |
| 75 | ReadProcCopy = ReadProc; |
| 76 | SeekProcCopy = SeekRProc; |
| 77 | TellProcCopy = TellRProc; |
| 78 | iopenCopy = iopenr; |
| 79 | icloseCopy = icloser; |
| 80 | |
| 81 | // Set the standard procs to read |
| 82 | ilResetRead(); |
| 83 | |
| 84 | return; |
| 85 | } |
| 86 | |
| 87 | |
| 88 | // Restores the read functions - must be used after iPreserveReadFuncs(). |
nothing calls this directly
no outgoing calls
no test coverage detected