Fixed password decoding

Thanks Jimmy Taker compilation warning.
This commit is contained in:
Nirgal Vourgère 2013-06-27 23:46:46 +02:00
parent 0bbe5d3ee6
commit 365f7959ed

View File

@ -260,7 +260,7 @@ MdbHandle *mdb_open(const char *filename, MdbFileFlags flags)
/* get the db password located at 0x42 bytes into the file */
for (pos=0;pos<14;pos++) {
j = mdb_get_int32(mdb,0x42+pos);
j = mdb_get_int32(mdb->pg_buf, 0x42+pos);
j ^= key[pos];
if ( j != 0)
mdb->f->db_passwd[pos] = j;