Changeset 6188 for trunk/src


Ignore:
Timestamp:
Jul 6, 2001, 9:22:35 PM (24 years ago)
Author:
bird
Message:

Fixed long dll name OS/2 feature. Win32k blocked it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/ldr/myldrCheckInternalName.cpp

    r5086 r6188  
    1 /* $Id: myldrCheckInternalName.cpp,v 1.3 2001-02-10 11:11:45 bird Exp $
     1/* $Id: myldrCheckInternalName.cpp,v 1.4 2001-07-06 19:22:35 bird Exp $
    22 *
    33 * ldrCheckInternalName - ldrCheckInternalName replacement with support for
     
    8181    PCHAR   pachExt;                    /* Pointer to the extention part of pachFilename. (not dot!) */
    8282    int     cchExt;                     /* Length of the extention part of pachFilename. (not dot!) */
     83    PCHAR   pachResName;                /* Pointer to the internal name - resname.0 */
    8384    APIRET  rc;                         /* Return code. */
    8485
     
    9798    cchExt = (pachExt) ? strlen(pachExt) : 0;
    9899    ldrUCaseString(pachName, cchName + cchExt + 1);
    99 
     100    pachResName = (PCHAR)pMTE->mte_swapmte->smte_restab;
    100101
    101102    /*
    102103     * Do the compare - DllFix case or standard case.
    103104     */
    104     if (cchName > 8
     105    if (   (cchName > 8 && *pachResName > 8)
    105106        || (   (pMTE->mte_flags1 & CLASS_MASK) == CLASS_GLOBAL
    106107            && (cchExt != 3 || strcmp(pachExt, "DLL"))  /* Extention != DLL. */
     
    112113         *     but it could have.
    113114         *  2. If not DLL extention, then internal name must have an extention.
    114          *  3. If no extetion the internal name should end with a '.'.
     115         *  3. If no extention the internal name should end with a '.'.
    115116         */
    116         PCHAR   pachResName = (PCHAR)pMTE->mte_swapmte->smte_restab;
    117 
    118117        if (pachExt != NULL && cchExt == 3 && !memcmp(pachExt, "DLL", 3))   /* DLL extention. */
    119118        {   /* (1) */
Note: See TracChangeset for help on using the changeset viewer.