| 584 | // Testing functions |
| 585 | |
| 586 | static DWORD Storage_OpenFiles(TLogHelper & LogHelper, TEST_PARAMS & Params) |
| 587 | { |
| 588 | CASC_FIND_DATA cf = {0}; |
| 589 | DWORD dwErrCode = ERROR_SUCCESS; |
| 590 | |
| 591 | // Setup the name structure |
| 592 | CascStrCopy(cf.szFileName, _countof(cf.szFileName), Params.szFileName); |
| 593 | cf.szPlainName = (char *)GetPlainFileName(cf.szFileName); |
| 594 | |
| 595 | // Setup the file to extract |
| 596 | //Params.fp2 = OpenExtractedFile(Params.hStorage, "\\%s", cf); |
| 597 | |
| 598 | // Perform the extraction |
| 599 | ExtractFile(LogHelper, Params, cf); |
| 600 | LogHelper.PrintTotalTime(); |
| 601 | |
| 602 | // Close the output file |
| 603 | if(Params.fp2 != NULL) |
| 604 | fclose(Params.fp2); |
| 605 | Params.fp2 = NULL; |
| 606 | |
| 607 | return dwErrCode; |
| 608 | } |
| 609 | |
| 610 | static DWORD Storage_SeekFiles(TLogHelper & LogHelper, TEST_PARAMS & Params) |
| 611 | { |
nothing calls this directly
no test coverage detected