From cce6dd0033e95742f065168ae68dcd388c0e136c Mon Sep 17 00:00:00 2001 From: Jukka Heinonen Date: Tue, 31 Jul 2001 17:25:47 +0000 Subject: [PATCH] Include device name in call to CreateIC. --- dlls/gdi/driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdi/driver.c b/dlls/gdi/driver.c index 7819a4186f8..a091beb3522 100644 --- a/dlls/gdi/driver.c +++ b/dlls/gdi/driver.c @@ -376,7 +376,7 @@ INT WINAPI GDI_CallExtDeviceMode16( HWND hwnd, if(!DRIVER_GetDriverName( lpszDevice, buf, sizeof(buf) )) return -1; - if (!(hdc = CreateICA( buf, NULL, lpszPort, NULL ))) return -1; + if (!(hdc = CreateICA( buf, lpszDevice, lpszPort, NULL ))) return -1; if ((dc = DC_GetDCPtr( hdc ))) { @@ -421,7 +421,7 @@ DWORD WINAPI GDI_CallDeviceCapabilities16( LPCSTR lpszDevice, LPCSTR lpszPort, if(!DRIVER_GetDriverName( lpszDevice, buf, sizeof(buf) )) return -1; - if (!(hdc = CreateICA( buf, NULL, lpszPort, NULL ))) return -1; + if (!(hdc = CreateICA( buf, lpszDevice, lpszPort, NULL ))) return -1; if ((dc = DC_GetDCPtr( hdc ))) {