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
b101a5c6
Commit
b101a5c6
authored
Aug 21, 1999
by
Rein Klazes
Committed by
Alexandre Julliard
Aug 21, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typelib reading to correctly use the offset of the typelib that
is embedded in for example a dll file.
parent
3e473f3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
typelib.c
ole/typelib.c
+3
-1
No files found.
ole/typelib.c
View file @
b101a5c6
...
...
@@ -528,7 +528,8 @@ DWORD TLB_Read(void *buffer, DWORD count, TLBContext *pcx, long where )
DWORD
bytesread
=
0
;
if
((
where
!=
DO_NOT_SEEK
&&
(
0xffffffff
==
SetFilePointer
(
pcx
->
hFile
,
where
,
0
,
FILE_BEGIN
))
(
0xffffffff
==
SetFilePointer
(
pcx
->
hFile
,
where
+
pcx
->
oStart
,
0
,
FILE_BEGIN
))
)
||
!
ReadFile
(
pcx
->
hFile
,
buffer
,
count
,
&
bytesread
,
NULL
)
)
{
...
...
@@ -1041,6 +1042,7 @@ int TLB_ReadTypeLib(PCHAR file, ITypeLib **ppTypeLib)
return
E_FAIL
;
}
/* get pointer to beginning of typelib data */
cx
.
oStart
=
0
;
if
((
oStart
=
TLB_FindTlb
(
&
cx
))
<
0
){
if
(
oStart
==-
1
)
ERR_
(
typelib
)(
"cannot locate typelib in %s
\n
"
,
file
);
...
...
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