Possible printer driver bug
Jukka Heinonen
jhei at iki.fi
Sun Jul 29 09:31:05 CDT 2001
Wine compiled from CVS crashes since file "wine/dlls/gdi/driver.c"
passes a NULL pointer to function CreateICA. The following
patch stops crashing, but since I have no idea how Wine
printer drivers work, this patch might be plain wrong.
After this patch, Wine no longer crashes, but I haven't
been able to test whether printing works or not.
Index: wine/dlls/gdi/driver.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/driver.c,v
retrieving revision 1.2
diff -u -r1.2 driver.c
--- wine/dlls/gdi/driver.c 2001/07/28 00:18:02 1.2
+++ wine/dlls/gdi/driver.c 2001/07/29 14:10:18
@@ -376,7 +376,7 @@
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 )))
{
--
Jukka Heinonen <http://www.iki.fi/jhei/>
More information about the wine-devel
mailing list