| 381 | // bool STORMAPI SFileCloseFile(HANDLE hFile); |
| 382 | |
| 383 | bool STORMAPI SFileCloseFile(HANDLE hFile) |
| 384 | { |
| 385 | TMPQFile * hf = (TMPQFile *)hFile; |
| 386 | |
| 387 | if(!IsValidFileHandle(hFile)) |
| 388 | { |
| 389 | SetLastError(ERROR_INVALID_HANDLE); |
| 390 | return false; |
| 391 | } |
| 392 | |
| 393 | // Free the structure |
| 394 | FreeFileHandle(hf); |
| 395 | return true; |
| 396 | } |
no test coverage detected