Ignore:
Timestamp:
May 26, 2008, 4:33:24 AM (17 years ago)
Author:
pr
Message:

Fix nlsUpper() for DBCS.
Make file handles code DBCS safe. Bug 1070.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/wphandle.c

    r302 r365  
    2424
    2525/*
    26  *      This file Copyright (C) 1997-2005 Ulrich M”ller,
     26 *      This file Copyright (C) 1997-2008 Ulrich M”ller,
    2727 *      This file is part of the "XWorkplace helpers" source package.
    2828 *      This is free software; you can redistribute it and/or modify
     
    279279 *
    280280 *@@added V0.9.16 (2001-10-02) [umoeller]
    281  *@@changted V0.9.17 (2002-02-05) [umoeller]: added fQuitOnErrors
     281 *@@changed V0.9.17 (2002-02-05) [umoeller]: added fQuitOnErrors
     282 *@@changed XWP V1.0.8 (2008-05-25) [pr]: made DBCS safe @@fixes 1070
    282283 */
    283284
     
    317318
    318319                // upper the node name for string comparisons
    319                 strupr(pDriv->szName);
     320                nlsUpper(pDriv->szName);  // V1.0.8 (2008-05-25)
    320321
    321322                // create a drive tree node
     
    347348
    348349                // upper the node name for string comparisons
    349                 strupr(pNode->szName);
     350                nlsUpper(pNode->szName);  // V1.0.8 (2008-05-25)
    350351
    351352                // create a node tree node
     
    643644 *
    644645 *@@changed V0.9.16 (2001-10-19) [umoeller]: rewritten
     646 *@@changed V1.0.8 (2008-05-25) [pr]: made DBCS safe @@fixes 1070
    645647 */
    646648
     
    681683                    pEnd = NULL;
    682684
    683             strupr(pszFilename);
     685            nlsUpper(pszFilename);  // V1.0.8 (2008-05-25)
    684686
    685687            // 1) OK, find the drive.
Note: See TracChangeset for help on using the changeset viewer.