HeapReAlloc status (take 3.B)

Dimitrie O. Paun dpaun at rogers.com
Tue Oct 14 07:57:55 CDT 2003


We still have 72 HeapReAlloc() entries to validate:

./dlls/kernel/toolhelp.c:            notifys=(struct notify*)HeapReAlloc( GetProcessHeap(), 0, notifys,
./dlls/kernel/toolhelp.c:    notifys=(struct notify*)HeapReAlloc( GetProcessHeap(), 0, notifys,
./dlls/kernel/local16.c:    ptr = HeapReAlloc( header->heap,
./dlls/msvcrt/heap.c:  return HeapReAlloc(GetProcessHeap(), HEAP_REALLOC_IN_PLACE_ONLY, mem, size);
./dlls/msvcrt/heap.c:  return HeapReAlloc(GetProcessHeap(), 0, ptr, size);
./dlls/netapi32/apibuf.c:    *NewBuffer = HeapReAlloc(GetProcessHeap(), 0, OldBuffer, NewByteCount);
./dlls/ole32/ifs.c:     pNewMemory = HeapReAlloc(GetProcessHeap(),0,pv,cb);
./dlls/ole32/ole16.c:    ret = MapLS( HeapReAlloc( GetProcessHeap(), 0, MapSL(pv), cb ) );
./dlls/rpcrt4/rpc_binding.c:  LPSTR ndst = HeapReAlloc(GetProcessHeap(), 0, dst, (len+slen+2)*sizeof(CHAR));
./dlls/rpcrt4/rpc_binding.c:  LPWSTR ndst = HeapReAlloc(GetProcessHeap(), 0, dst, (len+slen+2)*sizeof(WCHAR));
./dlls/setupapi/virtcopy.c:     vhstrlist = HeapReAlloc(heap, HEAP_ZERO_MEMORY, vhstrlist,
./dlls/setupapi/virtcopy.c:        pvnlist = HeapReAlloc(heap, HEAP_ZERO_MEMORY, pvnlist,
./dlls/setupapi/parser.c:    if ((new_array = HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, array, new_count * elem )))
./dlls/setupapi/parser.c:        if (!(section = HeapReAlloc( GetProcessHeap(), 0, section, size ))) return NULL;
./dlls/setupapi/parser.c:        file->sections = HeapReAlloc( GetProcessHeap(), 0, file->sections,
./dlls/setupapi/parser.c:        file->fields = HeapReAlloc( GetProcessHeap(), 0, file->fields,
./dlls/setupapi/parser.c:    file->strings = HeapReAlloc( GetProcessHeap(), HEAP_REALLOC_IN_PLACE_ONLY, file->strings,
./dlls/wineps/glyphlist.c:      newGlyphList = (GLYPHNAME **) HeapReAlloc(PSDRV_Heap, 0, glyphList,
./dlls/wineps/ppd.c:        buf = HeapReAlloc( PSDRV_Heap, 0, buf,
./dlls/wineps/ppd.c:        buf = HeapReAlloc( PSDRV_Heap, 0, buf, len + sl + 1 );
./dlls/wineps/type1.c:  str->str = HeapReAlloc(GetProcessHeap(), 0, str->str, str->max_len);
./dlls/wineps/type1.c:  t1->glyph_sent = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
./dlls/wineps/type42.c:            t42->glyf_blocks = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
./dlls/wineps/type42.c: t42->glyph_sent = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
./dlls/winmm/lolvldrv.c:        HeapReAlloc(GetProcessHeap(), 0, (llTypes[type].lpMlds) ? llTypes[type].lpMlds - 1 : NULL,
./dlls/winmm/time.c:                        HeapReAlloc(GetProcessHeap(), 0,
./dlls/winmm/mciavi/mmoutput.c:         wma->lpAudioIndex = HeapReAlloc(GetProcessHeap(), 0,
./dlls/winmm/wineoss/audio.c:   omr->messages = HeapReAlloc(GetProcessHeap(),0,omr->messages, omr->ring_buffer_size * sizeof(OSS_MSG));
./dlls/winmm/wineoss/audio.c:    This->notifies = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
./dlls/winmm/winearts/audio.c:  mr->messages = HeapReAlloc(GetProcessHeap(),0,mr->messages, mr->ring_buffer_size * sizeof(RING_MSG));
./dlls/winmm/winealsa/audio.c:  omr->messages = HeapReAlloc(GetProcessHeap(),0,omr->messages, omr->ring_buffer_size * sizeof(ALSA_MSG));
./dlls/winmm/winenas/audio.c:   mr->messages = HeapReAlloc(GetProcessHeap(),0,mr->messages, mr->ring_buffer_size * sizeof(RING_MSG));
./dlls/winmm/winejack/audio.c:    wwo->sound_buffer = HeapReAlloc(GetProcessHeap(), 0, wwo->sound_buffer, wwo->buffer_size);
./dlls/winsock/async.c:                            extrabuf=HeapReAlloc(GetProcessHeap(),0,extrabuf,ebufsize) ;
./dlls/winsock/socket.c:        extrabuf=HeapReAlloc(GetProcessHeap(),0,extrabuf,ebufsize) ;
./dlls/winsock/socket.c:        extrabuf=HeapReAlloc(GetProcessHeap(),0,extrabuf,ebufsize) ;
./dlls/winspool/info.c:         pent=HeapReAlloc(GetProcessHeap(),0,pent,strlen(pent)+strlen(buf)+2);
./dlls/winspool/info.c:        LPWSTR *new_array = HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, printer_array,
./dlls/x11drv/xrender.c:  glyphsetCache = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
./dlls/x11drv/xrender.c:        entry->realized = HeapReAlloc(GetProcessHeap(),
./dlls/x11drv/xrender.c:          entry->bitmaps = HeapReAlloc(GetProcessHeap(),
./dlls/x11drv/xrender.c:          entry->gis = HeapReAlloc(GetProcessHeap(),
./dlls/x11drv/clipboard.c:       HeapReAlloc(GetProcessHeap(),0,val, total);
./graphics/painting.c:  *PtsOut = HeapReAlloc( GetProcessHeap(), 0, *PtsOut,
./graphics/x11drv/xfont.c:        !(buffer = HeapReAlloc( GetProcessHeap(), 0, buffer, *buf_size = len )))
./graphics/x11drv/xfont.c:          if( (newCache = (fontObject*)HeapReAlloc(GetProcessHeap(), 0,
./graphics/x11drv/palette.c:    mapping = HeapReAlloc( GetProcessHeap(), 0, palPtr->mapping,
./objects/gdiobj.c:            void *new_ptr = HeapReAlloc( GetProcessHeap(), 0, large_handles[i], size );
./objects/metafile.c:    mh = HeapReAlloc( GetProcessHeap(), 0, mh, size );
./objects/metafile.c:    mh = HeapReAlloc( GetProcessHeap(), 0, mh,
./objects/palette.c:        int *newMap = (int*) HeapReAlloc(GetProcessHeap(), 0,
./objects/region.c:     *firstrect = HeapReAlloc( GetProcessHeap(), 0, *firstrect, (2 * (sizeof(RECT)) * (reg->size)));
./objects/region.c:         if (! (dst->rects = HeapReAlloc( GetProcessHeap(), 0, dst->rects,
./objects/region.c:         newReg->rects = HeapReAlloc( GetProcessHeap(), 0, newReg->rects,
./objects/region.c:    if (!(reg->rects = HeapReAlloc( GetProcessHeap(), 0, reg->rects,
./programs/regapi/regapi.c:      lpsCurrentValue=HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,lpsCurrentValue,dwSize);
./programs/regapi/regapi.c:        lpsData=HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,lpsData,lLen);
./programs/regapi/regapi.c:        lpbData=HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,lpbData,dwLen);
./programs/regapi/regapi.c:          stdInput=HeapReAlloc(GetProcessHeap(), 0,stdInput,curSize+=STDIN_MAX_LEN);
./programs/regapi/regapi.c:              stdInput=HeapReAlloc(GetProcessHeap(),0,stdInput,strlen(stdInput)+STDIN_MAX_LEN);
./programs/wineconsole/dialog.c:            di->font = HeapReAlloc(GetProcessHeap(), 0, di->font, sizeof(*di->font) * (di->nFont + 1));
./programs/wineconsole/wineconsole.c:           data->cells = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, data->cells,
./programs/wineconsole/curses.c:    PRIVATE(data)->line = HeapReAlloc(GetProcessHeap(), 0, PRIVATE(data)->line,
./programs/winhelp/hlp2sgml.c:void* WINAPI HeapReAlloc( HANDLE heap, DWORD flags, void* ptr, DWORD size)
./programs/winhelp/hlpfile.c:        bi = HeapReAlloc(GetProcessHeap(), 0, bi, sizeof(*bi) + nc * sizeof(RGBQUAD));
./programs/winhelp/hlpfile.c:            hlpfile->bmps = HeapReAlloc(GetProcessHeap(), 0, hlpfile->bmps,
./programs/winhelp/hlpfile.c:            hlpfile->windows = HeapReAlloc(GetProcessHeap(), 0, hlpfile->windows,
./programs/regedit/regproc.c:        lpsData=HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,lpsData,lLen);
./programs/regedit/regproc.c:        lpbData=HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,lpbData,dwLen);
./programs/regedit/regproc.c:                    new_buffer = HeapReAlloc (GetProcessHeap(), 0, line, new_size);
./programs/regedit/regproc.c:        *buffer = HeapReAlloc(GetProcessHeap(), 0, *buffer,
./programs/regedit/regproc.c:        *val_buf = HeapReAlloc(GetProcessHeap(), 0, *val_buf, *val_size);


-- 
Dimi.




More information about the wine-devel mailing list