VirtualBox

Changeset 31274 in vbox for trunk


Ignore:
Timestamp:
Aug 2, 2010 9:17:22 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64300
Message:

r3/alloc.cpp: Fixed realloc assertion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Runtime/r3/alloc.cpp

    r31252 r31274  
    166166
    167167    void *pv = realloc(pvOld, cbNew);
    168     AssertMsg(pv && cbNew, ("realloc(%p, %#zx) failed!!!\n", pvOld, cbNew));
     168    AssertMsg(pv || !cbNew, ("realloc(%p, %#zx) failed!!!\n", pvOld, cbNew));
    169169    AssertMsg(   cbNew < RTMEM_ALIGNMENT
    170170              || !((uintptr_t)pv & (RTMEM_ALIGNMENT - 1))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette