| 403 | // bool WINAPI SFileCloseFile(HANDLE hFile); |
| 404 | |
| 405 | bool WINAPI SFileCloseFile(HANDLE hFile) |
| 406 | { |
| 407 | TMPQFile * hf = (TMPQFile *)hFile; |
| 408 | |
| 409 | if(!IsValidFileHandle(hFile)) |
| 410 | { |
| 411 | SetLastError(ERROR_INVALID_HANDLE); |
| 412 | return false; |
| 413 | } |
| 414 | |
| 415 | // Free the structure |
| 416 | FreeFileHandle(hf); |
| 417 | return true; |
| 418 | } |