2016-03-08 22:10 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/isprint.c
! HB_ISPRINTER(), ISPRINTER() fix to open the port name with CREATE
flag (= CREATE_ALWAYS on Windows). It may fix port detection in
certain situations. Tested on Windows 7 x86 and x64, whereas it
will now return .T. if the port is associated with a queue,
and .F. if it isn't. It seems to cause no harm on OS X. Please
test it on other systems and other LPT scenarios (f.e. with real
hardware device attached).
; borrowed from Viktor's fork: 2016-03-08 18:19 UTC+0100 Viktor Szakats
* ChangeLog.txt
; hide e-mail addresses
This commit is contained in:
@@ -113,7 +113,8 @@ HB_BOOL hb_printerIsReady( const char * pszPrinterName )
|
||||
#endif
|
||||
|
||||
pFile = hb_fileExtOpen( pszPrinterName, NULL,
|
||||
FO_WRITE | FO_SHARED | FO_PRIVATE, NULL, NULL );
|
||||
FXO_APPEND | FO_WRITE | FO_SHARED | FO_PRIVATE,
|
||||
NULL, NULL );
|
||||
bIsPrinter = ( pFile != NULL );
|
||||
if( bIsPrinter )
|
||||
hb_fileClose( pFile );
|
||||
|
||||
Reference in New Issue
Block a user