Changeset 132 for trunk/src/helpers/exeh.c
- Timestamp:
- Jan 19, 2002, 11:50:39 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/exeh.c
r131 r132 329 329 // go read in the complete header then 330 330 // (doshReadAt has this in the cache) 331 if (!(pExec->pNEHeader = malloc(cbRead)))331 if (!(pExec->pNEHeader = (PNEHEADER)malloc(cbRead))) 332 332 arc = ERROR_NOT_ENOUGH_MEMORY; 333 333 else if (!(arc = doshReadAt(pFile, … … 361 361 // go read in the complete header then 362 362 // (doshReadAt has this in the cache) 363 if (!(pExec->pLXHeader = malloc(cbRead)))363 if (!(pExec->pLXHeader = (PLXHEADER)malloc(cbRead))) 364 364 arc = ERROR_NOT_ENOUGH_MEMORY; 365 365 else if (!(arc = doshReadAt(pFile, … … 389 389 // plus an extended header, so check 390 390 // what we've got 391 if (!(pExec->pPEHeader = malloc(sizeof(PEHEADER))))391 if (!(pExec->pPEHeader = (PPEHEADER)malloc(sizeof(PEHEADER)))) 392 392 arc = ERROR_NOT_ENOUGH_MEMORY; 393 393 else … … 2742 2742 // 4096 bytes for each page that is read in 2743 2743 // plus 4 extra bytes to terminate for decompression 2744 if (!(pabCompressed = malloc(ulPageSize + 4)))2744 if (!(pabCompressed = (PBYTE)malloc(ulPageSize + 4))) 2745 2745 arc = ERROR_NOT_ENOUGH_MEMORY; 2746 2746 // 4096 * cPages for the data that is composed from that … … 2793 2793 { 2794 2794 // allocate a new buffer for caller 2795 if (!(*ppbResData = malloc(pRsEntry->cb)))2795 if (!(*ppbResData = (PBYTE)malloc(pRsEntry->cb))) 2796 2796 arc = ERROR_NOT_ENOUGH_MEMORY; 2797 2797 else … … 3052 3052 ULONG cb = pSegThis->ns_cbseg; // resource size 3053 3053 PBYTE pb; 3054 if (!(*ppbResData = malloc(cb)))3054 if (!(*ppbResData = (PBYTE)malloc(cb))) 3055 3055 arc = ERROR_NOT_ENOUGH_MEMORY; 3056 3056 else
Note:
See TracChangeset
for help on using the changeset viewer.