mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 10:19:27 +02:00
Printers, windows, fix test for printer type
git-svn-id: trunk@42522 -
This commit is contained in:
parent
ccd7488bf9
commit
25b5b1428e
@ -903,7 +903,7 @@ begin
|
||||
then
|
||||
raise EPrinter.CreateFmt('GetPrinterType failed : %s',
|
||||
[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;
|
||||
finally
|
||||
FreeMem(InfoPrt);
|
||||
|
Loading…
Reference in New Issue
Block a user