Adam Martinson : msxml3: Store the DLL instance handle.

Alexandre Julliard julliard at winehq.org
Mon Nov 15 13:28:45 CST 2010


Module: wine
Branch: master
Commit: 865995cf1f35c332a92f0a1ad4c651ae70fcb55d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=865995cf1f35c332a92f0a1ad4c651ae70fcb55d

Author: Adam Martinson <amartinson at codeweavers.com>
Date:   Tue Nov  9 21:40:34 2010 -0600

msxml3: Store the DLL instance handle.

---

 dlls/msxml3/main.c          |    4 ++++
 dlls/msxml3/msxml_private.h |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/msxml3/main.c b/dlls/msxml3/main.c
index 133a914..8e612b7 100644
--- a/dlls/msxml3/main.c
+++ b/dlls/msxml3/main.c
@@ -40,6 +40,8 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(msxml);
 
+HINSTANCE MSXML_hInstance = NULL;
+
 #ifdef HAVE_LIBXML2
 
 void wineXmlCallbackLog(char const* caller, xmlErrorLevel lvl, char const* msg, va_list ap)
@@ -190,6 +192,8 @@ static void init_libxslt(void)
 
 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
 {
+    MSXML_hInstance = hInstDLL;
+
     switch(fdwReason)
     {
     case DLL_PROCESS_ATTACH:
diff --git a/dlls/msxml3/msxml_private.h b/dlls/msxml3/msxml_private.h
index c2f80a0..183f97c 100644
--- a/dlls/msxml3/msxml_private.h
+++ b/dlls/msxml3/msxml_private.h
@@ -98,6 +98,8 @@ typedef struct {
     dispex_dynamic_data_t *dynamic_data;
 } DispatchEx;
 
+extern HINSTANCE MSXML_hInstance;
+
 void init_dispex(DispatchEx*,IUnknown*,dispex_static_data_t*);
 BOOL dispex_query_interface(DispatchEx*,REFIID,void**);
 




More information about the wine-cvs mailing list