Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
379e543b
Commit
379e543b
authored
Aug 21, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use LoadTypeLibEx to register typelib.
parent
dc224421
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
46 deletions
+6
-46
main.c
dlls/msxml3/main.c
+0
-37
msxml_private.h
dlls/msxml3/msxml_private.h
+0
-1
regsvr.c
dlls/msxml3/regsvr.c
+6
-8
No files found.
dlls/msxml3/main.c
View file @
379e543b
...
...
@@ -41,7 +41,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msxml
);
static
HINSTANCE
hInstance
;
static
ITypeLib
*
typelib
;
static
ITypeInfo
*
typeinfos
[
LAST_tid
];
...
...
@@ -114,41 +113,6 @@ HRESULT get_typeinfo(enum tid_t tid, ITypeInfo **typeinfo)
return
S_OK
;
}
static
CRITICAL_SECTION
MSXML3_typelib_cs
;
static
CRITICAL_SECTION_DEBUG
MSXML3_typelib_cs_debug
=
{
0
,
0
,
&
MSXML3_typelib_cs
,
{
&
MSXML3_typelib_cs_debug
.
ProcessLocksList
,
&
MSXML3_typelib_cs_debug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": MSXML3_typelib_cs"
)
}
};
static
CRITICAL_SECTION
MSXML3_typelib_cs
=
{
&
MSXML3_typelib_cs_debug
,
-
1
,
0
,
0
,
0
,
0
};
ITypeLib
*
get_msxml3_typelib
(
LPWSTR
*
path
)
{
static
WCHAR
msxml3_path
[
MAX_PATH
];
EnterCriticalSection
(
&
MSXML3_typelib_cs
);
if
(
!
typelib
)
{
TRACE
(
"loading typelib
\n
"
);
if
(
GetModuleFileNameW
(
hInstance
,
msxml3_path
,
MAX_PATH
))
LoadTypeLib
(
msxml3_path
,
&
typelib
);
}
LeaveCriticalSection
(
&
MSXML3_typelib_cs
);
if
(
path
)
*
path
=
msxml3_path
;
if
(
typelib
)
ITypeLib_AddRef
(
typelib
);
return
typelib
;
}
static
void
process_detach
(
void
)
{
if
(
typelib
)
{
...
...
@@ -187,7 +151,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
/* Set the current ident to the default */
xmlTreeIndentString
=
"
\t
"
;
#endif
hInstance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
break
;
case
DLL_PROCESS_DETACH
:
...
...
dlls/msxml3/msxml_private.h
View file @
379e543b
...
...
@@ -134,6 +134,5 @@ enum tid_t {
};
extern
HRESULT
get_typeinfo
(
enum
tid_t
tid
,
ITypeInfo
**
typeinfo
);
extern
ITypeLib
*
get_msxml3_typelib
(
LPWSTR
*
path
);
#endif
/* __MSXML_PRIVATE__ */
dlls/msxml3/regsvr.c
View file @
379e543b
...
...
@@ -663,7 +663,7 @@ HRESULT WINAPI DllRegisterServer(void)
{
HRESULT
hr
;
ITypeLib
*
tl
;
LPWSTR
path
=
NULL
;
static
const
WCHAR
wszMsXml3
[]
=
{
'm'
,
's'
,
'x'
,
'm'
,
'l'
,
'3'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
}
;
TRACE
(
"
\n
"
);
...
...
@@ -673,14 +673,12 @@ HRESULT WINAPI DllRegisterServer(void)
if
(
SUCCEEDED
(
hr
))
hr
=
register_progids
(
progid_list
);
tl
=
get_msxml3_typelib
(
&
path
);
if
(
tl
)
{
hr
=
RegisterTypeLib
(
tl
,
path
,
NULL
);
ITypeLib_Release
(
tl
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
LoadTypeLibEx
(
wszMsXml3
,
REGKIND_REGISTER
,
&
tl
);
if
(
SUCCEEDED
(
hr
))
ITypeLib_Release
(
tl
);
}
else
hr
=
E_FAIL
;
return
hr
;
}
...
...
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