mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 01:03:38 +00:00
include: Be consistent in naming regarding MSF's block.
No longer calling it sometimes 'page'. Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
d970584b62
commit
71abef0906
|
@ -3555,7 +3555,7 @@ static BOOL pdb_init(const struct pdb_lookup* pdb_lookup, struct pdb_file_info*
|
|||
struct PDB_DS_ROOT* root;
|
||||
|
||||
pdb_file->u.ds.toc =
|
||||
pdb_ds_read(pdb, (const UINT*)((const char*)pdb + pdb->toc_page * pdb->block_size),
|
||||
pdb_ds_read(pdb, (const UINT*)((const char*)pdb + pdb->toc_block * pdb->block_size),
|
||||
pdb->toc_size);
|
||||
root = pdb_read_ds_file(pdb, pdb_file->u.ds.toc, 1);
|
||||
if (!root)
|
||||
|
|
|
@ -2398,10 +2398,10 @@ struct PDB_DS_HEADER
|
|||
char signature[32];
|
||||
unsigned int block_size;
|
||||
unsigned int unknown1;
|
||||
unsigned int num_pages;
|
||||
unsigned int num_blocks;
|
||||
unsigned int toc_size;
|
||||
unsigned int unknown2;
|
||||
unsigned int toc_page;
|
||||
unsigned int toc_block;
|
||||
};
|
||||
|
||||
struct PDB_JG_TOC
|
||||
|
|
|
@ -1120,7 +1120,7 @@ static BOOL pdb_ds_init(struct pdb_reader* reader)
|
|||
if (!reader->u.ds.header) return FALSE;
|
||||
reader->read_file = pdb_ds_read_file;
|
||||
reader->u.ds.toc = pdb_ds_read(reader->u.ds.header,
|
||||
(const UINT *)((const char*)reader->u.ds.header + reader->u.ds.header->toc_page * reader->u.ds.header->block_size),
|
||||
(const UINT *)((const char*)reader->u.ds.header + reader->u.ds.header->toc_block * reader->u.ds.header->block_size),
|
||||
reader->u.ds.header->toc_size);
|
||||
memset(reader->file_used, 0, sizeof(reader->file_used));
|
||||
return TRUE;
|
||||
|
@ -1137,20 +1137,20 @@ static void pdb_ds_dump(void)
|
|||
"\tsignature: %.*s\n"
|
||||
"\tblock_size: %08x\n"
|
||||
"\tunknown1: %08x\n"
|
||||
"\tnum_pages: %08x\n"
|
||||
"\tnum_blocks: %08x\n"
|
||||
"\ttoc_size: %08x\n"
|
||||
"\tunknown2: %08x\n"
|
||||
"\ttoc_page: %08x\n",
|
||||
"\ttoc_block: %08x\n",
|
||||
(int)sizeof(pdb7) - 1, reader.u.ds.header->signature,
|
||||
reader.u.ds.header->block_size,
|
||||
reader.u.ds.header->unknown1,
|
||||
reader.u.ds.header->num_pages,
|
||||
reader.u.ds.header->num_blocks,
|
||||
reader.u.ds.header->toc_size,
|
||||
reader.u.ds.header->unknown2,
|
||||
reader.u.ds.header->toc_page);
|
||||
reader.u.ds.header->toc_block);
|
||||
|
||||
/* files with static indexes:
|
||||
* 0: JG says old toc pages
|
||||
* 0: JG says old toc blocks
|
||||
* 1: root structure
|
||||
* 2: types
|
||||
* 3: modules
|
||||
|
|
Loading…
Reference in a new issue