MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / ResetFindData

Function ResetFindData

src/External/CascLib/src/CascFindFile.cpp:19–34  ·  view source on GitHub ↗

Reset the search structure. Called before each search

Source from the content-addressed store, hash-verified

17
18// Reset the search structure. Called before each search
19static void ResetFindData(PCASC_FIND_DATA pFindData)
20{
21 // Reset the variables
22 ZeroMemory16(pFindData->CKey);
23 ZeroMemory16(pFindData->EKey);
24 pFindData->szFileName[0] = 0;
25 pFindData->szPlainName = pFindData->szFileName;
26 pFindData->TagBitMask = 0;
27 pFindData->FileSize = CASC_INVALID_SIZE64;
28 pFindData->dwFileDataId = CASC_INVALID_ID;
29 pFindData->dwLocaleFlags = CASC_INVALID_ID;
30 pFindData->dwContentFlags = CASC_INVALID_ID;
31 pFindData->dwSpanCount = 1;
32 pFindData->NameType = CascNameFull;
33 pFindData->bFileAvailable = false;
34}
35
36static void SupplyFakeFileName(PCASC_FIND_DATA pFindData, PCASC_CKEY_ENTRY pCKeyEntry)
37{

Callers 2

DoStorageSearch_RootFileFunction · 0.85
DoStorageSearch_CKeyFunction · 0.85

Calls 1

ZeroMemory16Function · 0.85

Tested by

no test coverage detected