Changeset 1734 for trunk/dll/misc.c


Ignore:
Timestamp:
Feb 21, 2014, 1:01:29 AM (11 years ago)
Author:
Gregg Young
Message:

Tentative fix for container double free error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r1673 r1734  
    961961                                 szData,
    962962                                 sizeof(szData)))
    963             {
     963            {
     964              BOOL fDisplayEqualFile = FALSE;
     965
     966              if (pci->pszFileName == pci->pszDisplayName)
     967                fDisplayEqualFile = TRUE;
    964968              pci->pszFileName = xrealloc(pci->pszFileName, sizeof(szData), pszSrcFile, __LINE__);
    965               strcpy(szData, pci->pszFileName);
     969              strcpy(szData, pci->pszFileName);
     970              if (fDisplayEqualFile)
     971                pci->pszDisplayName = pci->pszFileName;
    966972            }
    967973            WinSetWindowText(hwndMLE, szData);
Note: See TracChangeset for help on using the changeset viewer.