Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
74f39d20
Commit
74f39d20
authored
Mar 16, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Improve typelib header dumping.
parent
63db2d2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
tlb.c
tools/winedump/tlb.c
+30
-7
No files found.
tools/winedump/tlb.c
View file @
74f39d20
...
...
@@ -214,6 +214,29 @@ static void dump_binary(int n)
printf
(
"
\n
"
);
}
static
int
dump_msft_varflags
(
void
)
{
static
const
char
*
syskind
[]
=
{
"SYS_WIN16"
,
"SYS_WIN32"
,
"SYS_MAC"
,
"SYS_WIN64"
,
"unknown"
};
int
kind
,
flags
;
print_offset
();
flags
=
tlb_read_int
();
kind
=
flags
&
0xf
;
if
(
kind
>
3
)
kind
=
4
;
printf
(
"varflags = %08x, syskind = %s
\n
"
,
flags
,
syskind
[
kind
]);
return
flags
;
}
static
void
dump_msft_version
(
void
)
{
int
version
;
print_offset
();
version
=
tlb_read_int
();
printf
(
"version = %d.%d
\n
"
,
version
&
0xff
,
version
>>
16
);
}
static
void
dump_msft_header
(
void
)
{
print_begin_block
(
"Header"
);
...
...
@@ -222,15 +245,15 @@ static void dump_msft_header(void)
print_hex
(
"magic2"
);
print_hex
(
"posguid"
);
print_hex
(
"lcid"
);
print_hex
(
"l
s
id2"
);
header_flags
=
print_hex
(
"varflags"
);
print_hex
(
"version"
);
print_hex
(
"l
c
id2"
);
header_flags
=
dump_msft_varflags
(
);
dump_msft_version
(
);
print_hex
(
"flags"
);
typeinfo_cnt
=
print_dec
(
"ntypeinfos"
);
print_
hex
(
"helpstring"
);
print_
hex
(
"helpstringcontext"
);
print_
hex
(
"helpcontext"
);
print_dec
(
"nametablecont"
);
print_
dec
(
"helpstring"
);
print_
dec
(
"helpstringcontext"
);
print_
dec
(
"helpcontext"
);
print_dec
(
"nametableco
u
nt"
);
print_dec
(
"nametablechars"
);
print_hex
(
"NameOffset"
);
print_hex
(
"helpfile"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment