Ignore:
Timestamp:
Sep 1, 2000, 10:01:37 AM (25 years ago)
Author:
bird
Message:

Found and fixed an optimization bug of VA 3.08. (see remark on openPath2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GRACE/src/win32k/pe2lx/pe2lx.cpp

    r4110 r4141  
    1 /* $Id: pe2lx.cpp,v 1.18.4.10 2000-08-29 04:08:24 bird Exp $
     1/* $Id: pe2lx.cpp,v 1.18.4.11 2000-09-01 08:01:37 bird Exp $
    22 *
    33 * Pe2Lx class implementation. Ring 0 and Ring 3
     
    13751375 *          endloop
    13761376 *      endif
    1377  */
    1378 ULONG  Pe2Lx::openPath2(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *pLdrLv, PULONG pful, BOOL fOdin32PathValid)
     1377 * @remark      cchFilename has to be ULONG due to an optimization bug in VA 3.08.
     1378 *              (cchFilename should have been USHORT. But, then the compiler would
     1379 *               treat it as an ULONG.)
     1380 */
     1381ULONG  Pe2Lx::openPath2(PCHAR pachFilename, ULONG cchFilename, ldrlv_t *pLdrLv, PULONG pful, BOOL fOdin32PathValid)
    13791382{
    13801383    #ifdef RING0
     
    15381541            memcpy(pVars->sz, pszPath, cch);
    15391542            pVars->sz[cch++] = '\\';
    1540             memcpy(&pVars->sz[cch], pachFilename, cchFilename);
     1543            memcpy(&pVars->sz[cch], pachFilename, (size_t)cchFilename);
    15411544            if (cchExt != 0)
    15421545                memcpy(&pVars->sz[cch + cchFilename], ".DLL", 5);
     
    15841587     */
    15851588    rfree(pVars);
    1586     return ldrOpenPath(pachFilename, cchFilename, pLdrLv, pful);
     1589    return ldrOpenPath(pachFilename, (USHORT)cchFilename, pLdrLv, pful);
    15871590
    15881591    #else
Note: See TracChangeset for help on using the changeset viewer.