Changeset 35


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

Fixed broken SplPdQuery entrypoint. BLDLEVEL description now properly set.

Location:
trunk/cups_pdr
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/cups_pdr/cups.c

    r13 r35  
    896896
    897897        case BIDI_Q_PORTDRV:
     898            // If no buffer was provided, just return the required size
     899            if ( !pOutData && pcbOutData ) {
     900                *pcbOutData = sizeof( PORTSETTINGS );
     901                return ERROR_MORE_DATA;
     902            }
    898903            // Make sure the data is valid
    899             if ( !pOutData || *pcbOutData < sizeof( PORTSETTINGS ))
     904            if ( !pOutData || !pcbOutData || ( *pcbOutData < sizeof( PORTSETTINGS )))
    900905                return( ERROR_INVALID_PARAMETER );
    901906            pSettings = (PPORTSETTINGS) pOutData;
     
    913918                    if ( token[ strlen(token) - 1 ] == ';')
    914919                        token[ strlen(token) - 1 ] = '\0';
    915                     strncpy( pSettings->szHost, token, STR_LEN_QUEUENAME );
     920                    strncpy( pSettings->szQueue, token, STR_LEN_QUEUENAME );
    916921                }
    917922            }
  • trunk/cups_pdr/cups.def

    r13 r35  
    11LIBRARY CUPS INITINSTANCE TERMINSTANCE
    2 DESCRIPTION '@#netlabs.org:1.03#@##1## 16 Feb 2011 20:53:08     sigel::::::@@@#netlabs.org:1.03#@##1## 16 Feb 2011 20:08:22     sigel::::::@@@#netlabs.org:1.'
     2DESCRIPTION '@#netlabs.org:1.04#@##1## 1 May 2013 21:45:10      REINFORCE::::::@@CUPS port driver'
    33PROTMODE
    44DATA MULTIPLE NONSHARED LOADONCALL
  • trunk/cups_pdr/cups.h

    r13 r35  
    1 #define DRIVER_VERSION                "1.03"
     1#define DRIVER_VERSION                "1.04"
    22#define PATH_CUPS_PDR                 "?:\\OS2\\DLL\\CUPS.PDR"
    33#define CUPS_DLL                      "CUPS.PDR"
  • trunk/cups_pdr/makefile

    r13 r35  
    44BASE=CUPS
    55DEF_PORTNAME=CUPS
     6DESCR="CUPS port driver"
    67
    78ICCOPTS=-Gd-e- -Sp1 -Ss+ -Ms -C+ -Fo$@ -Dcdecl= -D_cdecl= -Rn -O -Wpro -Q+ -Yp+ -Ss+
     
    2021                                $(BASE).RES \
    2122                                $(BASE).DEF
    22         @makedesc -Rcups.def -N"netlabs.org" -V"^#define=DRIVER_VERSION,cups.h" cups.def
     23        @makedesc -D$(DESCR) -N"netlabs.org" -V"^#define=DRIVER_VERSION,cups.h" cups.def
    2324        ILINK $(LINKOPTS) @<<
    2425$(BASE)
  • trunk/cups_pdr/readme.os2

    r13 r35  
    1010
    1111History:
     122013-05-01      - fixed partially broken SplPdQuery
     13                - fixed bldlevel description
    12142011-02-16      - implemented SplPdSet and SplPdQuery APIs
    1315                - cupslpr.exe is now loaded from the path where TCP/IP is installed (even if not on the boot drive)
Note: See TracChangeset for help on using the changeset viewer.