| 341 | } |
| 342 | |
| 343 | static DWORD LoadMultipleHashes(PCASC_BLOB pBlob, const char * szLineBegin, const char * szLineEnd) |
| 344 | { |
| 345 | size_t HashCount = 0; |
| 346 | DWORD dwErrCode = ERROR_SUCCESS; |
| 347 | |
| 348 | // Retrieve the hash count |
| 349 | if(CaptureHashCount(szLineBegin, szLineEnd, &HashCount) == NULL) |
| 350 | return ERROR_BAD_FORMAT; |
| 351 | |
| 352 | // Do nothing if there is no data |
| 353 | if(HashCount != 0) |
| 354 | { |
| 355 | dwErrCode = LoadHashArray(pBlob, szLineBegin, szLineEnd, HashCount); |
| 356 | } |
| 357 | |
| 358 | return dwErrCode; |
| 359 | } |
| 360 | |
| 361 | // Loads a query key from the text form |
| 362 | // A QueryKey is an array of "ContentKey EncodedKey1 ... EncodedKeyN" |
no test coverage detected