Commit c37f91c7 authored by Alexandre Julliard's avatar Alexandre Julliard

winspool.drv: Use the Unix call helpers.

parent 3e5bf703
...@@ -48,7 +48,6 @@ static CRITICAL_SECTION backend_cs = { &backend_cs_debug, -1, 0, 0, 0, 0 }; ...@@ -48,7 +48,6 @@ static CRITICAL_SECTION backend_cs = { &backend_cs_debug, -1, 0, 0, 0, 0 };
/* ############################### */ /* ############################### */
HINSTANCE WINSPOOL_hInstance = NULL; HINSTANCE WINSPOOL_hInstance = NULL;
unixlib_handle_t winspool_handle = 0;
static HMODULE hlocalspl; static HMODULE hlocalspl;
static BOOL (WINAPI *pInitializePrintProvidor)(LPPRINTPROVIDOR, DWORD, LPWSTR); static BOOL (WINAPI *pInitializePrintProvidor)(LPPRINTPROVIDOR, DWORD, LPWSTR);
...@@ -115,8 +114,7 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved ) ...@@ -115,8 +114,7 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
WINSPOOL_hInstance = instance; WINSPOOL_hInstance = instance;
DisableThreadLibraryCalls( instance ); DisableThreadLibraryCalls( instance );
if (!NtQueryVirtualMemory( GetCurrentProcess(), instance, MemoryWineUnixFuncs, if (!__wine_init_unix_call())
&winspool_handle, sizeof(winspool_handle), NULL ))
UNIX_CALL( process_attach, NULL ); UNIX_CALL( process_attach, NULL );
WINSPOOL_LoadSystemPrinters(); WINSPOOL_LoadSystemPrinters();
break; break;
......
...@@ -72,9 +72,7 @@ struct schedule_job_params ...@@ -72,9 +72,7 @@ struct schedule_job_params
const WCHAR *wine_port; const WCHAR *wine_port;
}; };
extern unixlib_handle_t winspool_handle DECLSPEC_HIDDEN; #define UNIX_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
#define UNIX_CALL( func, params ) __wine_unix_call( winspool_handle, unix_ ## func, params )
enum cups_funcs enum cups_funcs
{ {
......
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