Include device name in call to CreateIC.

This commit is contained in:
Jukka Heinonen 2001-07-31 17:25:47 +00:00 committed by Alexandre Julliard
parent 8f4c007ff5
commit cce6dd0033
1 changed files with 2 additions and 2 deletions

View File

@ -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 )))
{