DoEnumPrinters crashes if PDevMode is null
Original Reporter info from Mantis: emaijala
-
Reporter name: Ere Maijala
Original Reporter info from Mantis: emaijala
- Reporter name: Ere Maijala
Description:
EnumPrinters can return PPRINTER_INFO structures where PDevMode is null (
maybey when the printer cannot be accessed). Such cases will crash DoEnumPrinters when it tries to dereference PDevMode. A proposed patch is attached.
Steps to reproduce:
Maybe: create a connection to a network printer and take the local system offline.
Mantis conversion info:
- Mantis ID: 1156
- OS: Win
- OS Build: XP
- Build: 31.08.2005
- Platform: x86
- Version: 0.9.9 (SVN)
- Fixed in version: 0.9.9 (SVN)
- Monitored by: » emaijala (Ere Maijala)