16 Aug
2001
16 Aug
'01
4:34 p.m.
In article <997995321.1690.4.camel(a)bugg> you wrote:
Hi all,
Having CUPS installed and a printer in CUPS configured would crash an application I'm looking at. The reason was that the printer would be added with a NULL name.
- if (!AddPrinterA(NULL,2,(LPBYTE)&pinfo2a)) { + if (!AddPrinterA(printers[i],2,(LPBYTE)&pinfo2a)) {
This will just make the printer not added AT ALL, since there is the following code in AddPrinterW: if(pName != NULL) { ERR("pName = %s - unsupported\n", debugstr_w(pName)); SetLastError(ERROR_INVALID_PARAMETER); return 0; } Please do not apply. Ciao, Marcus