Printers, windows, fix test for printer type

git-svn-id: trunk@42522 -
This commit is contained in:
jesus 2013-08-29 23:45:25 +00:00
parent ccd7488bf9
commit 25b5b1428e

View File

@ -903,7 +903,7 @@ begin
then then
raise EPrinter.CreateFmt('GetPrinterType failed : %s', raise EPrinter.CreateFmt('GetPrinterType failed : %s',
[SysErrorMessage(GetLastError)]); [SysErrorMessage(GetLastError)]);
if PPRINTER_INFO_4(InfoPrt)^.Attributes = PRINTER_ATTRIBUTE_NETWORK then if (PPRINTER_INFO_4(InfoPrt)^.Attributes and PRINTER_ATTRIBUTE_NETWORK)<>0 then
Result := ptNetwork; Result := ptNetwork;
finally finally
FreeMem(InfoPrt); FreeMem(InfoPrt);