mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
gphoto2.ds: Use the Unix call helpers.
This commit is contained in:
parent
a62d3ab841
commit
0e10e6ab55
|
@ -477,7 +477,6 @@ static TW_UINT16 GPHOTO2_XferGroupSet (pTW_IDENTITY pOrigin,
|
|||
}
|
||||
|
||||
HINSTANCE GPHOTO2_instance = 0;
|
||||
unixlib_handle_t gphoto2_handle = 0;
|
||||
|
||||
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
|
@ -488,8 +487,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|||
case DLL_PROCESS_ATTACH:
|
||||
GPHOTO2_instance = hinstDLL;
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
NtQueryVirtualMemory( GetCurrentProcess(), hinstDLL, MemoryWineUnixFuncs,
|
||||
&gphoto2_handle, sizeof(gphoto2_handle), NULL );
|
||||
__wine_init_unix_call();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,6 +71,4 @@ enum gphoto2_funcs
|
|||
unix_close_file,
|
||||
};
|
||||
|
||||
extern unixlib_handle_t gphoto2_handle DECLSPEC_HIDDEN;
|
||||
|
||||
#define GPHOTO2_CALL( func, params ) __wine_unix_call( gphoto2_handle, unix_ ## func, params )
|
||||
#define GPHOTO2_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
|
||||
|
|
Loading…
Reference in a new issue