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
c10d17de
Commit
c10d17de
authored
Nov 12, 2001
by
Huw D M Davies
Committed by
Alexandre Julliard
Nov 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes stupid bug with typelib filenames.
parent
9eaefced
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
typelib.c
dlls/oleaut32/typelib.c
+3
-5
No files found.
dlls/oleaut32/typelib.c
View file @
c10d17de
...
...
@@ -262,12 +262,11 @@ HRESULT WINAPI LoadTypeLibEx(
ITypeLib
**
pptLib
)
/* [out] Pointer to pointer to loaded type library */
{
WCHAR
szPath
[
MAX_PATH
+
1
],
szFileCopy
[
MAX_PATH
+
1
];
const
WCHAR
*
pFile
,
*
pIndexStr
;
WCHAR
*
pIndexStr
;
HRESULT
res
;
INT
index
=
1
;
TRACE
(
"(%s,%d,%p)
\n
"
,
debugstr_w
(
szFile
),
regkind
,
pptLib
);
pFile
=
szFile
;
if
(
!
SearchPathW
(
NULL
,
szFile
,
NULL
,
sizeof
(
szPath
)
/
sizeof
(
WCHAR
),
szPath
,
NULL
))
{
...
...
@@ -278,7 +277,6 @@ HRESULT WINAPI LoadTypeLibEx(
memcpy
(
szFileCopy
,
szFile
,
(
pIndexStr
-
szFile
-
1
)
*
sizeof
(
WCHAR
));
szFileCopy
[
pIndexStr
-
szFile
-
1
]
=
'\0'
;
pFile
=
szFileCopy
;
if
(
!
SearchPathW
(
NULL
,
szFileCopy
,
NULL
,
sizeof
(
szPath
)
/
sizeof
(
WCHAR
),
szPath
,
NULL
))
return
TYPE_E_CANTLOADLIBRARY
;
...
...
@@ -286,9 +284,9 @@ HRESULT WINAPI LoadTypeLibEx(
return
TYPE_E_CANTLOADLIBRARY
;
}
TRACE
(
"File %s index %d
\n
"
,
debugstr_w
(
pFile
),
index
);
TRACE
(
"File %s index %d
\n
"
,
debugstr_w
(
szPath
),
index
);
res
=
TLB_ReadTypeLib
(
pFile
,
index
,
(
ITypeLib2
**
)
pptLib
);
res
=
TLB_ReadTypeLib
(
szPath
,
index
,
(
ITypeLib2
**
)
pptLib
);
if
(
SUCCEEDED
(
res
))
switch
(
regkind
)
...
...
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