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
2a51df3b
Commit
2a51df3b
authored
Jul 16, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Jul 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion: Handle DWORD-sized string indices when loading the assembly name.
parent
0edab123
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
assembly.c
dlls/fusion/assembly.c
+12
-5
No files found.
dlls/fusion/assembly.c
View file @
2a51df3b
...
...
@@ -735,7 +735,7 @@ HRESULT assembly_release(ASSEMBLY *assembly)
return
S_OK
;
}
static
LPSTR
assembly_dup_str
(
ASSEMBLY
*
assembly
,
WORD
index
)
static
LPSTR
assembly_dup_str
(
ASSEMBLY
*
assembly
,
D
WORD
index
)
{
LPSTR
str
=
(
LPSTR
)
&
assembly
->
strings
[
index
];
LPSTR
cpy
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
str
)
+
1
);
...
...
@@ -746,18 +746,25 @@ static LPSTR assembly_dup_str(ASSEMBLY *assembly, WORD index)
HRESULT
assembly_get_name
(
ASSEMBLY
*
assembly
,
LPSTR
*
name
)
{
ASSEMBLYTABLE
*
asmtbl
;
BYTE
*
ptr
;
ULONG
offset
;
DWORD
stridx
;
offset
=
assembly
->
tables
[
TableFromToken
(
mdtAssembly
)].
offset
;
if
(
offset
==
-
1
)
return
E_FAIL
;
asmtbl
=
(
ASSEMBLYTABLE
*
)
assembly_data_offset
(
assembly
,
offset
);
if
(
!
asmtbl
)
ptr
=
assembly_data_offset
(
assembly
,
offset
);
if
(
!
ptr
)
return
E_FAIL
;
*
name
=
assembly_dup_str
(
assembly
,
asmtbl
->
Name
);
ptr
+=
FIELD_OFFSET
(
ASSEMBLYTABLE
,
PublicKey
)
+
assembly
->
blobsz
;
if
(
assembly
->
stringsz
==
sizeof
(
DWORD
))
stridx
=
*
((
DWORD
*
)
ptr
);
else
stridx
=
*
((
WORD
*
)
ptr
);
*
name
=
assembly_dup_str
(
assembly
,
stridx
);
if
(
!*
name
)
return
E_OUTOFMEMORY
;
...
...
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