1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

gphoto2.ds: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-28 11:40:22 +01:00
parent a62d3ab841
commit 0e10e6ab55
2 changed files with 2 additions and 6 deletions

View File

@ -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;
}

View File

@ -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 )