Ignore:
Timestamp:
Nov 27, 2001, 6:30:55 PM (24 years ago)
Author:
phaller
Message:

fix in name resolver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/handlenames.cpp

    r7441 r7465  
    416416    // now append the rest of the specified name with the
    417417    // now resolved symbolic cut away
    418     strncpy(pszTarget + pHandleName->ulTargetLength,
    419             pszName + pHandleName->ulSymbolicLinkLength,
    420             ulTargetLength - pHandleName->ulTargetLength);
     418    if (ulTargetLength != pHandleName->ulTargetLength)
     419      strncpy(pszTarget + pHandleName->ulTargetLength,
     420              pszName + pHandleName->ulSymbolicLinkLength,
     421              ulTargetLength - pHandleName->ulTargetLength);
     422   
     423    // tell caller the name has been resolved
     424    // (is different from the source name)
     425    rc = TRUE;
    421426  }
    422427 
Note: See TracChangeset for help on using the changeset viewer.