Commit a6cb10bb authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wineps: Don't pass PRINTERINFO structure to unixlib.

parent 351e58dc
...@@ -902,7 +902,7 @@ fail: ...@@ -902,7 +902,7 @@ fail:
const struct gdi_dc_funcs * CDECL PSDRV_get_gdi_driver( unsigned int version, const WCHAR *name ) const struct gdi_dc_funcs * CDECL PSDRV_get_gdi_driver( unsigned int version, const WCHAR *name )
{ {
PRINTERINFO *pi = PSDRV_FindPrinterInfo( name ); PRINTERINFO *pi = PSDRV_FindPrinterInfo( name );
struct init_dc_params params = { NULL, pi, pi->friendly_name }; struct init_dc_params params;
if (!pi) if (!pi)
return NULL; return NULL;
...@@ -911,6 +911,9 @@ const struct gdi_dc_funcs * CDECL PSDRV_get_gdi_driver( unsigned int version, co ...@@ -911,6 +911,9 @@ const struct gdi_dc_funcs * CDECL PSDRV_get_gdi_driver( unsigned int version, co
ERR( "version mismatch, gdi32 wants %u but wineps has %u\n", version, WINE_GDI_DRIVER_VERSION ); ERR( "version mismatch, gdi32 wants %u but wineps has %u\n", version, WINE_GDI_DRIVER_VERSION );
return NULL; return NULL;
} }
params.name = pi->friendly_name;
params.devmode = pi->Devmode;
params.funcs = NULL;
if (!WINE_UNIX_CALL( unix_init_dc, &params )) if (!WINE_UNIX_CALL( unix_init_dc, &params ))
return FALSE; return FALSE;
return params.funcs; return params.funcs;
......
...@@ -88,8 +88,7 @@ struct import_ntf_params ...@@ -88,8 +88,7 @@ struct import_ntf_params
struct init_dc_params struct init_dc_params
{ {
const struct gdi_dc_funcs *funcs;
PRINTERINFO *pi;
const WCHAR *name; const WCHAR *name;
PSDRV_DEVMODE *devmode;
const struct gdi_dc_funcs *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