Commit 0ba17961 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

gdi32: Add device name to wine_get_gdi_driver call.

parent f739bfc3
......@@ -42,7 +42,7 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
};
static CRITICAL_SECTION driver_section = { &critsect_debug, -1, 0, 0, 0, 0 };
typedef const void * (CDECL *driver_entry_point)( unsigned int version );
typedef const void * (CDECL *driver_entry_point)( unsigned int version, const WCHAR *device );
struct graphics_driver
{
......
......@@ -719,8 +719,8 @@ HDC WINAPI NtGdiOpenDCW( UNICODE_STRING *device, const DEVMODEW *devmode, UNICOD
funcs = get_display_driver();
else if (hspool)
{
const struct gdi_dc_funcs * (CDECL *wine_get_gdi_driver)( unsigned int ) = hspool;
funcs = wine_get_gdi_driver( WINE_GDI_DRIVER_VERSION );
const struct gdi_dc_funcs * (CDECL *wine_get_gdi_driver)( unsigned int, const WCHAR * ) = hspool;
funcs = wine_get_gdi_driver( WINE_GDI_DRIVER_VERSION, device ? device->Buffer : NULL );
}
if (!funcs)
{
......
......@@ -687,7 +687,7 @@ static struct gdi_dc_funcs psdrv_funcs =
/******************************************************************************
* PSDRV_get_gdi_driver
*/
const struct gdi_dc_funcs * CDECL PSDRV_get_gdi_driver( unsigned int version )
const struct gdi_dc_funcs * CDECL PSDRV_get_gdi_driver( unsigned int version, const WCHAR *name )
{
if (version != WINE_GDI_DRIVER_VERSION)
{
......
@ cdecl wine_get_gdi_driver(long) PSDRV_get_gdi_driver
@ cdecl wine_get_gdi_driver(long str) PSDRV_get_gdi_driver
@ stdcall -private DllRegisterServer()
# Printer driver config exports
......
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