Commit 0e10e6ab authored by Alexandre Julliard's avatar Alexandre Julliard

gphoto2.ds: Use the Unix call helpers.

parent a62d3ab8
......@@ -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 )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment