Changeset 4141 for branches/GRACE/src/win32k/pe2lx/pe2lx.cpp
- Timestamp:
- Sep 1, 2000, 10:01:37 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GRACE/src/win32k/pe2lx/pe2lx.cpp
r4110 r4141 1 /* $Id: pe2lx.cpp,v 1.18.4.1 0 2000-08-29 04:08:24bird Exp $1 /* $Id: pe2lx.cpp,v 1.18.4.11 2000-09-01 08:01:37 bird Exp $ 2 2 * 3 3 * Pe2Lx class implementation. Ring 0 and Ring 3 … … 1375 1375 * endloop 1376 1376 * 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 */ 1381 ULONG Pe2Lx::openPath2(PCHAR pachFilename, ULONG cchFilename, ldrlv_t *pLdrLv, PULONG pful, BOOL fOdin32PathValid) 1379 1382 { 1380 1383 #ifdef RING0 … … 1538 1541 memcpy(pVars->sz, pszPath, cch); 1539 1542 pVars->sz[cch++] = '\\'; 1540 memcpy(&pVars->sz[cch], pachFilename, cchFilename);1543 memcpy(&pVars->sz[cch], pachFilename, (size_t)cchFilename); 1541 1544 if (cchExt != 0) 1542 1545 memcpy(&pVars->sz[cch + cchFilename], ".DLL", 5); … … 1584 1587 */ 1585 1588 rfree(pVars); 1586 return ldrOpenPath(pachFilename, cchFilename, pLdrLv, pful);1589 return ldrOpenPath(pachFilename, (USHORT)cchFilename, pLdrLv, pful); 1587 1590 1588 1591 #else
Note:
See TracChangeset
for help on using the changeset viewer.