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

Function GetHashResult

src/External/CascLib/test/CascTest.cpp:137–147  ·  view source on GitHub ↗

Compares the expected hash with the real one. If they match, returns "match" If the expected hash is not available, returns empty string

Source from the content-addressed store, hash-verified

135// Compares the expected hash with the real one. If they match, returns "match"
136// If the expected hash is not available, returns empty string
137static LPCSTR GetHashResult(LPCSTR szExpectedHash, LPCSTR szFinalHash)
138{
139 if(szExpectedHash != NULL)
140 {
141 return (_stricmp(szExpectedHash, szFinalHash) == 0) ? " (match)" : " (HASH MISMATCH)";
142 }
143 else
144 {
145 return "";
146 }
147}
148
149static void MakeShortName(LPSTR szShortName, size_t ccShortName, CASC_FIND_DATA & cf)
150{

Callers 1

Storage_EnumFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected