mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:17:14 +00:00
odbc32: Use the Unix call helpers.
This commit is contained in:
parent
f7b55ffafa
commit
7f808e564d
|
@ -45,9 +45,7 @@
|
|||
WINE_DEFAULT_DEBUG_CHANNEL(odbc);
|
||||
WINE_DECLARE_DEBUG_CHANNEL(winediag);
|
||||
|
||||
static unixlib_handle_t odbc_handle;
|
||||
|
||||
#define ODBC_CALL( func, params ) __wine_unix_call( odbc_handle, unix_ ## func, params )
|
||||
#define ODBC_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
|
||||
|
||||
/***********************************************************************
|
||||
* ODBC_ReplicateODBCInstToRegistry
|
||||
|
@ -2642,9 +2640,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
|
|||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
if (!NtQueryVirtualMemory( GetCurrentProcess(), hinstDLL, MemoryWineUnixFuncs,
|
||||
&odbc_handle, sizeof(odbc_handle), NULL ) &&
|
||||
!__wine_unix_call( odbc_handle, process_attach, NULL))
|
||||
if (!__wine_init_unix_call() && !WINE_UNIX_CALL( process_attach, NULL ))
|
||||
{
|
||||
ODBC_ReplicateToRegistry();
|
||||
}
|
||||
|
@ -2652,7 +2648,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
|
|||
|
||||
case DLL_PROCESS_DETACH:
|
||||
if (reserved) break;
|
||||
__wine_unix_call( odbc_handle, process_detach, NULL );
|
||||
WINE_UNIX_CALL( process_detach, NULL );
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue