Changeset 772 for branches/smbpdr-1.0


Ignore:
Timestamp:
May 2, 2013, 5:39:58 PM (12 years ago)
Author:
Alex Taylor
Message:

Fix to SplPdQuery allowing the required buffer size to be queried.

Location:
branches/smbpdr-1.0
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/smbpdr-1.0/changelog

    r758 r772  
     1Version 1.0.3 02-05-2013
     2  !Fixed: SplPdQuery now properly returns the required buffer size if a NULL
     3          buffer is specified.
     4
    15Version 1.0.2 12-05-2012
    26  +Added: SplPdQuery and SplPdSet now implemented.  This allows applications to
  • branches/smbpdr-1.0/smb.c

    r758 r772  
    955955
    956956        case BIDI_Q_PORTDRV:
     957            // If no buffer was provided, just return the required size
     958            if ( !pOutData && pcbOutData ) {
     959                *pcbOutData = sizeof( PORTSETTINGS );
     960                return ERROR_MORE_DATA;
     961            }
    957962            // Make sure the data is valid
    958             if ( !pOutData || *pcbOutData < sizeof( PORTSETTINGS ))
     963            if ( !pOutData || !pcbOutData || ( *pcbOutData < sizeof( PORTSETTINGS )))
    959964                return( ERROR_INVALID_PARAMETER );
    960965            pSettings = (PPORTSETTINGS) pOutData;
  • branches/smbpdr-1.0/smb.def

    r758 r772  
    11LIBRARY SMB INITINSTANCE TERMINSTANCE
    2 DESCRIPTION '@#netlabs.org:1.02#@##1## 5 Dec 2012 15:31:07      sigel::::::@@Samba client port driver for SMB printing'
     2DESCRIPTION '@#netlabs.org:1.03#@##1## 2 May 2013 09:48:38      REINFORCE::::::@@Samba client port driver for SMB printing'
    33PROTMODE
    44DATA MULTIPLE NONSHARED LOADONCALL
  • branches/smbpdr-1.0/smb.h

    r758 r772  
    1 #define DRIVER_VERSION               "1.02"
     1#define DRIVER_VERSION               "1.03"
    22#define PATH_SMB_PDR                 "?:\\OS2\\DLL\\SMB.PDR"
    33#define SMB_DLL                      "SMB.PDR"
Note: See TracChangeset for help on using the changeset viewer.