Compares the expected hash with the real one. If they match, returns "match" If the expected hash is not available, returns empty string
| 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 |
| 137 | static 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 | |
| 149 | static void MakeShortName(LPSTR szShortName, size_t ccShortName, CASC_FIND_DATA & cf) |
| 150 | { |