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
fa38d542
Commit
fa38d542
authored
Feb 25, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Feb 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dump the pidl of a lnk file.
parent
64c3208e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
lnk.c
tools/winedump/lnk.c
+23
-2
No files found.
tools/winedump/lnk.c
View file @
fa38d542
...
...
@@ -191,7 +191,8 @@ static lnk_string* load_string(int fd, int unicode)
static
int
dump_pidl
(
int
fd
)
{
void
*
pidl
;
lnk_string
*
pidl
;
int
i
,
n
=
0
,
sz
=
0
;
pidl
=
load_pidl
(
fd
);
if
(
!
pidl
)
...
...
@@ -200,6 +201,26 @@ static int dump_pidl(int fd)
printf
(
"PIDL
\n
"
);
printf
(
"----
\n\n
"
);
while
(
sz
<
pidl
->
size
)
{
lnk_string
*
segment
=
(
lnk_string
*
)
&
pidl
->
str
.
a
[
sz
];
if
(
!
segment
->
size
)
break
;
sz
+=
segment
->
size
;
if
(
sz
>
pidl
->
size
)
{
printf
(
"bad pidl
\n
"
);
break
;
}
n
++
;
printf
(
"segment %d (%2d bytes) : "
,
n
,
segment
->
size
);
for
(
i
=
0
;
i
<
segment
->
size
;
i
++
)
printf
(
"%02x "
,
segment
->
str
.
a
[
i
]);
printf
(
"
\n
"
);
}
printf
(
"
\n
"
);
free
(
pidl
);
return
0
;
...
...
@@ -257,7 +278,7 @@ static int dump_location(int fd)
printf
(
"size %ld type %ld serial %08lx label %ld "
,
vol
->
dwSize
,
vol
->
dwType
,
vol
->
dwVolSerial
,
vol
->
dwVolLabelOfs
);
if
(
vol
->
dwVolLabelOfs
)
printf
(
"(
\"
%s
\"
)"
,
&
p
[
vol
->
dwVolLabelOfs
]);
printf
(
"(
\"
%s
\"
)"
,
&
p
[
loc
->
dwVolTableOfs
+
vol
->
dwVolLabelOfs
]);
}
printf
(
"
\n
"
);
...
...
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