---------------------------------------------------------------------------
| 121 | } |
| 122 | //--------------------------------------------------------------------------- |
| 123 | bool __fastcall TFile::SetPointer(LONG Dist, DWORD MoveMethod) |
| 124 | { |
| 125 | if( ! handle ) |
| 126 | { |
| 127 | Error = true; |
| 128 | if( Exceptions && Error ) throw 0; |
| 129 | return false; |
| 130 | } |
| 131 | LastError = 0; |
| 132 | Error = SetFilePointer(handle, Dist, NULL, MoveMethod) == INVALID_SET_FILE_POINTER; |
| 133 | if( Error ) LastError = GetLastError(); |
| 134 | if( Exceptions && Error ) throw 0; |
| 135 | return ! Error; |
| 136 | } |
| 137 | //--------------------------------------------------------------------------- |
| 138 | bool __fastcall TFile::SetPointer(LONG Dist) |
| 139 | { |
no outgoing calls
no test coverage detected