Changeset 1011 for trunk/dll/wrappers.c
- Timestamp:
- May 11, 2008, 5:00:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/wrappers.c
r1009 r1011 332 332 # ifdef FORTIFY 333 333 Fortify_free(pv, pszSrcFile, uiLineNumber); 334 # else 334 # else 335 335 free(pv); 336 336 # endif … … 345 345 # ifdef FORTIFY 346 346 PVOID pv = Fortify_malloc(cBytes, pszSrcFile, uiLineNumber); 347 # else 347 # else 348 348 PVOID pv = malloc(cBytes); 349 349 # endif … … 359 359 PVOID xmallocz(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber) 360 360 { 361 PVOID pv = malloc(cBytes); 362 363 if (!pv) 364 Runtime_Error(pszSrcFile, uiLineNumber, GetPString(IDS_OUTOFMEMORY)); 365 else 361 PVOID pv = xmalloc(cBytes, pszSrcFile, uiLineNumber); 362 363 if (pv) 366 364 memset(pv, 0, cBytes); 367 365 … … 374 372 { 375 373 if (pvIn != NullStr) { 376 PVOID pv = realloc(pvIn, cBytes); 374 # ifdef FORTIFY 375 PVOID pv = Fortify_realloc(pvIn, cBytes, pszSrcFile, uiLineNumber); 376 # else 377 PVOID pv = realloc(pvIn, cBytes); 378 # endif 377 379 378 380 if (!pv && cBytes) … … 391 393 # ifdef FORTIFY 392 394 PSZ psz = Fortify_strdup(pszIn, pszSrcFile, uiLineNumber); 393 # else 395 # else 394 396 PSZ psz = strdup(pszIn); 395 397 # endif
Note:
See TracChangeset
for help on using the changeset viewer.