Ignore:
Timestamp:
Jan 19, 2002, 11:50:39 AM (24 years ago)
Author:
umoeller
Message:

Misc changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/exeh.c

    r131 r132  
    329329                // go read in the complete header then
    330330                // (doshReadAt has this in the cache)
    331                 if (!(pExec->pNEHeader = malloc(cbRead)))
     331                if (!(pExec->pNEHeader = (PNEHEADER)malloc(cbRead)))
    332332                    arc = ERROR_NOT_ENOUGH_MEMORY;
    333333                else if (!(arc = doshReadAt(pFile,
     
    361361                // go read in the complete header then
    362362                // (doshReadAt has this in the cache)
    363                 if (!(pExec->pLXHeader = malloc(cbRead)))
     363                if (!(pExec->pLXHeader = (PLXHEADER)malloc(cbRead)))
    364364                    arc = ERROR_NOT_ENOUGH_MEMORY;
    365365                else if (!(arc = doshReadAt(pFile,
     
    389389                // plus an extended header, so check
    390390                // what we've got
    391                 if (!(pExec->pPEHeader = malloc(sizeof(PEHEADER))))
     391                if (!(pExec->pPEHeader = (PPEHEADER)malloc(sizeof(PEHEADER))))
    392392                    arc = ERROR_NOT_ENOUGH_MEMORY;
    393393                else
     
    27422742                    // 4096 bytes for each page that is read in
    27432743                    // plus 4 extra bytes to terminate for decompression
    2744                     if (!(pabCompressed = malloc(ulPageSize + 4)))
     2744                    if (!(pabCompressed = (PBYTE)malloc(ulPageSize + 4)))
    27452745                        arc = ERROR_NOT_ENOUGH_MEMORY;
    27462746                    // 4096 * cPages for the data that is composed from that
     
    27932793                        {
    27942794                            // allocate a new buffer for caller
    2795                             if (!(*ppbResData = malloc(pRsEntry->cb)))
     2795                            if (!(*ppbResData = (PBYTE)malloc(pRsEntry->cb)))
    27962796                                arc = ERROR_NOT_ENOUGH_MEMORY;
    27972797                            else
     
    30523052                ULONG cb = pSegThis->ns_cbseg;        // resource size
    30533053                PBYTE pb;
    3054                 if (!(*ppbResData = malloc(cb)))
     3054                if (!(*ppbResData = (PBYTE)malloc(cb)))
    30553055                    arc = ERROR_NOT_ENOUGH_MEMORY;
    30563056                else
Note: See TracChangeset for help on using the changeset viewer.