Changeset 960 for trunk/dll/misc.c


Ignore:
Timestamp:
Feb 18, 2008, 4:06:14 AM (17 years ago)
Author:
Gregg Young
Message:

One more buffer check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r959 r960  
    799799              pci->pszLongName = xrealloc(pci->pszLongName, retlen + 1, pszSrcFile, __LINE__);
    800800          }
    801           else
     801          else {
    802802            pci->pszLongName = xmalloc(retlen + 1, pszSrcFile, __LINE__);
     803            if (!pci->pszLongName)
     804              return FALSE;
     805          }
    803806          return (MRESULT) WriteLongName(pci->pszFileName, longname);
    804807        }
Note: See TracChangeset for help on using the changeset viewer.