Changeset 200


Ignore:
Timestamp:
Aug 10, 2002, 4:40:23 PM (23 years ago)
Author:
umoeller
Message:

More fixes.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/dosh.h

    r194 r200  
    843843    typedef struct _PARTITIONINFO
    844844    {
    845         BYTE    bDisk;                 // drive number
    846         CHAR    cLetter;               // probable drive letter or ' ' if none
    847         BYTE    bFSType;               // file system type
    848         PCSZ    pcszFSType;            // file system name (as returned by
    849                                        // doshType2FSName, can be NULL!)
    850         BOOL    fPrimary;              // primary partition?
    851         BOOL    fBootable;             // bootable by Boot Manager?
    852         CHAR    szBootName[9];         // Boot Manager name, if (fBootable)
    853         ULONG   ulSize;                // size MBytes
    854         PPARTITIONINFO pNext;        // next info or NULL if last
     845        BYTE    bDisk;                  // drive number
     846        CHAR    cLetter;                // probable drive letter or ' ' if none
     847        BYTE    bFSType;                // file system type
     848        PCSZ    pcszFSType;             // file system name (as returned by
     849                                        // doshType2FSName, can be NULL!)
     850        BOOL    fPrimary;               // primary partition?
     851        BOOL    fBootable;              // bootable by Boot Manager?
     852        CHAR    szBootName[21];         // Boot Manager name, if (fBootable)
     853                                        // extended for LVM names V0.9.20 (2002-08-10) [umoeller]
     854        ULONG   ulSize;                 // size MBytes
     855        PPARTITIONINFO pNext;           // next info or NULL if last
    855856    } PARTITIONINFO;
    856857
  • trunk/src/helpers/dosh2.c

    r194 r200  
    782782 *
    783783 *@@added V0.9.0 [umoeller]
     784 *@@changed V0.9.20 (2002-08-10) [umoeller]: fixed truncated LVM names
    784785 */
    785786
     
    796797{
    797798    APIRET arc = NO_ERROR;
    798     PPARTITIONINFO ppiNew = NEW(PARTITIONINFO);
    799     if (ppiNew)
     799    PPARTITIONINFO ppiNew;
     800    if (ppiNew = NEW(PARTITIONINFO))
    800801    {
    801802        ZERO(ppiNew);
     
    803804        // store data
    804805        ppiNew->bDisk = bDisk;
    805         if ((fBootable) && (pszBootName) )
     806        if (    (fBootable)
     807             && (pszBootName)
     808           )
    806809        {
    807             memcpy(ppiNew->szBootName, pszBootName, 8);
    808             ppiNew->szBootName[8] = 0;
     810            // fixed truncated LVM names V0.9.20 (2002-08-10) [umoeller]
     811            strhncpy0(ppiNew->szBootName,
     812                      pszBootName,
     813                      sizeof(ppiNew->szBootName));
    809814        }
    810815        else
  • trunk/src/helpers/gpih.c

    r196 r200  
    23802380    }
    23812381
    2382     return GpiWCBitBlt(hpsTarget,     // target HPS (bmp selected)
     2382    return GpiWCBitBlt(hpsTarget,       // target HPS (bmp selected)
    23832383                       hbmSource,
    2384                        4L,             // must always be 4
    2385                        &aptl[0],       // points array
     2384                       4L,              // must always be 4
     2385                       &aptl[0],        // points array
    23862386                       ROP_SRCCOPY,
    23872387                       BBO_IGNORE);
  • trunk/src/helpers/winh.c

    r199 r200  
    43944394    ulCharHeight = gpihQueryLineSpacing(hps);
    43954395
    4396     while (   (lDrawn)
    4397            && (lTotalDrawn < ulTextLen)
     4396    while (    (lDrawn)
     4397            && (lTotalDrawn < ulTextLen)
    43984398          )
    43994399    {
Note: See TracChangeset for help on using the changeset viewer.