Changeset 1568 for trunk/dll/pathutil.c


Ignore:
Timestamp:
May 31, 2011, 11:11:01 PM (14 years ago)
Author:
Steven Levine
Message:

Avoid extra copy in BuildFullPathName

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/pathutil.c

    r1545 r1568  
    7979  UINT c = pszPathName ? strlen(pszPathName) : 0;
    8080  if (c > 0) {
    81     memcpy(pszFullPathName, pszPathName, c);
     81    if (pszFullPathName != pszPathName)
     82      memcpy(pszFullPathName, pszPathName, c);
    8283    if (pszFullPathName[c - 1] != '\\')
    8384      pszFullPathName[c++] = '\\';
Note: See TracChangeset for help on using the changeset viewer.