Ignore:
Timestamp:
Mar 16, 2002, 8:53:47 AM (23 years ago)
Author:
umoeller
Message:

Misc updates for Unicode.

File:
1 edited

Legend:

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

    r142 r147  
    21312131                XSTRING strElementName;
    21322132                xstrInitSet(&strElementName, (PSZ)pcszElementName);
    2133                 pThis = (PCMATTRIBUTEDECLBASE)treeFind(
     2133                if (!(pThis = (PCMATTRIBUTEDECLBASE)treeFind(
    21342134                                    pDocType->AttribDeclBasesTree,
    21352135                                    (ULONG)&strElementName,
    2136                                     CompareXStrings);
    2137 
    2138                 if (!pThis)
     2136                                    CompareXStrings)))
    21392137                {
    21402138                    // still not found:
    21412139                    // we need a new node then
    2142                     pDom->arcDOM = xmlCreateNodeBase(ATTRIBUTE_DECLARATION_BASE,
     2140                    if (!(pDom->arcDOM = xmlCreateNodeBase(ATTRIBUTE_DECLARATION_BASE,
    21432141                                                     sizeof(CMATTRIBUTEDECLBASE),
    21442142                                                     strElementName.psz,
    21452143                                                     strElementName.ulLength,
    2146                                                      (PNODEBASE*)&pThis);
    2147                     if (!pDom->arcDOM)
     2144                                                     (PNODEBASE*)&pThis)))
    21482145                    {
    21492146                        // initialize the subtree
Note: See TracChangeset for help on using the changeset viewer.