| 222 | } |
| 223 | |
| 224 | static const char * CaptureHashCount(const char * szDataPtr, const char * szDataEnd, size_t * PtrHashCount) |
| 225 | { |
| 226 | BYTE HashValue[MD5_HASH_SIZE]; |
| 227 | size_t HashCount = 0; |
| 228 | |
| 229 | // Capculate the hash count |
| 230 | while (szDataPtr < szDataEnd) |
| 231 | { |
| 232 | // Check one hash |
| 233 | szDataPtr = CaptureSingleHash(szDataPtr, szDataEnd, HashValue, MD5_HASH_SIZE); |
| 234 | if(szDataPtr == NULL) |
| 235 | return NULL; |
| 236 | |
| 237 | // Skip all whitespaces |
| 238 | while (szDataPtr < szDataEnd && IsWhiteSpace(szDataPtr)) |
| 239 | szDataPtr++; |
| 240 | |
| 241 | HashCount++; |
| 242 | } |
| 243 | |
| 244 | // Give results |
| 245 | PtrHashCount[0] = HashCount; |
| 246 | return szDataPtr; |
| 247 | } |
| 248 | |
| 249 | static DWORD GetLocaleValue(LPCSTR szTag) |
| 250 | { |
no test coverage detected