diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-07-08 07:11:22 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-07-08 07:11:22 +0000 |
commit | 417e3dc3a9c813c0f9f4741938979992fd7550d0 (patch) | |
tree | 3674bdffd68858d5714fc5e7b33935152a47d16f /setup_native/source/win32/customactions/regactivex | |
parent | 19f47afbcd614ce21e1c9afda2b079d308e764ea (diff) |
INTEGRATION: CWS fwk90 (1.16.38); FILE MERGED
2008/06/06 06:46:03 mav 1.16.38.1: #i87524# provide the path to register activex control
Diffstat (limited to 'setup_native/source/win32/customactions/regactivex')
-rw-r--r-- | setup_native/source/win32/customactions/regactivex/regactivex.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/setup_native/source/win32/customactions/regactivex/regactivex.cxx b/setup_native/source/win32/customactions/regactivex/regactivex.cxx index 278c84b9a..7102fd28e 100644 --- a/setup_native/source/win32/customactions/regactivex/regactivex.cxx +++ b/setup_native/source/win32/customactions/regactivex/regactivex.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: regactivex.cxx,v $ - * $Revision: 1.16 $ + * $Revision: 1.17 $ * * This file is part of OpenOffice.org. * @@ -51,7 +51,8 @@ // #define OWN_DEBUG_PRINT -typedef int ( __stdcall * DllNativeProc ) ( int, BOOL ); +typedef int ( __stdcall * DllNativeRegProc ) ( int, BOOL, const char* ); +typedef int ( __stdcall * DllNativeUnregProc ) ( int, BOOL ); BOOL UnicodeEquals( wchar_t* pStr1, wchar_t* pStr2 ) { @@ -100,9 +101,9 @@ void RegisterActiveXNative( const char* pActiveXPath, int nMode, BOOL InstallFor HINSTANCE hModule = LoadLibraryExA( pActiveXPath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH ); if( !( hModule <= ( HINSTANCE )HINSTANCE_ERROR ) ) { - DllNativeProc pNativeProc = ( DllNativeProc )GetProcAddress( hModule, "DllRegisterServerNative" ); + DllNativeRegProc pNativeProc = ( DllNativeRegProc )GetProcAddress( hModule, "DllRegisterServerNative" ); if( pNativeProc!=NULL ) - ( *pNativeProc )( nMode, InstallForAllUser ); + ( *pNativeProc )( nMode, InstallForAllUser, pActiveXPath ); FreeLibrary( hModule ); } @@ -120,7 +121,7 @@ void UnregisterActiveXNative( const char* pActiveXPath, int nMode, BOOL InstallF HINSTANCE hModule = LoadLibraryExA( pActiveXPath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH ); if( !( hModule <= ( HINSTANCE )HINSTANCE_ERROR ) ) { - DllNativeProc pNativeProc = ( DllNativeProc )GetProcAddress( hModule, "DllUnregisterServerNative" ); + DllNativeUnregProc pNativeProc = ( DllNativeUnregProc )GetProcAddress( hModule, "DllUnregisterServerNative" ); if( pNativeProc!=NULL ) ( *pNativeProc )( nMode, InstallForAllUser ); |