Mercurial > hg > sidinfo
comparison sidlib.c @ 203:b4a349f1c2f4
Actually fix the load address handling in hash calculation.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 11 Dec 2018 02:38:53 +0200 |
parents | 2dfe46fda09e |
children | 98563979859b |
comparison
equal
deleted
inserted
replaced
202:ae3e353731ae | 203:b4a349f1c2f4 |
---|---|
79 } | 79 } |
80 | 80 |
81 // Grab the load address | 81 // Grab the load address |
82 psid->loadAddress = TH_LE16_TO_NATIVE(*(uint16_t *) data); | 82 psid->loadAddress = TH_LE16_TO_NATIVE(*(uint16_t *) data); |
83 | 83 |
84 // .. do not include the load address to the hash if OLD SLDB format | 84 // .. do not include the load address to the hash if NEW SLDB format |
85 if (newSLDB) | 85 if (newSLDB) |
86 th_md5_append(state, &data[2], read - 2); | |
87 else | |
86 th_md5_append(state, data, read); | 88 th_md5_append(state, data, read); |
87 else | |
88 th_md5_append(state, &data[2], read - 2); | |
89 | 89 |
90 first = FALSE; | 90 first = FALSE; |
91 } | 91 } |
92 else | 92 else |
93 if (read > 0) | 93 if (read > 0) |