Ignore:
Timestamp:
Nov 29, 2001, 12:33:37 AM (24 years ago)
Author:
phaller
Message:

Fixes in HandleManager and Device Handlers

File:
1 edited

Legend:

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

    r7465 r7474  
    170170    if (fCaseInsensitive)
    171171    {
    172       if (strnicmp(pHandleName->pszSymbolicLink, pszSymbolicLink, iLen) == 0)
    173         return pHandleName;
     172      // Note: pszSymbolicLink must either terminate at [iLen] or
     173      // have a delimiter.
     174      if ( (pszSymbolicLink[iLen] == '\\') ||
     175           (pszSymbolicLink[iLen] == 0) )
     176        if (strnicmp(pHandleName->pszSymbolicLink, pszSymbolicLink, iLen) == 0)
     177          return pHandleName;
    174178    }
    175179    else
    176180    {
    177       if (strncmp(pHandleName->pszSymbolicLink, pszSymbolicLink, iLen) == 0)
    178         return pHandleName;
     181      if ( (pszSymbolicLink[iLen] == '\\') ||
     182           (pszSymbolicLink[iLen] == 0) )
     183        if (strncmp(pHandleName->pszSymbolicLink, pszSymbolicLink, iLen) == 0)
     184          return pHandleName;
    179185    }
    180186   
Note: See TracChangeset for help on using the changeset viewer.