mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: Heap panic mode fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@13651 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
85ced8bdd4
commit
3a7e0faff7
2 changed files with 3 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ bool MemoryTryRealloc_(void *ptr, size_t& newsize);
|
|||
|
||||
bool MemoryTryRealloc__(void *ptr, size_t& newsize)
|
||||
{
|
||||
if(!ptr) return false;
|
||||
if(!ptr || PanicMode) return false;
|
||||
Mutex::Lock __(sHeapLock2);
|
||||
DbgBlkHeader *p = (DbgBlkHeader *)ptr - 1;
|
||||
DbgCheck(p);
|
||||
|
|
@ -179,6 +179,8 @@ void MemoryFree48(void *ptr) { return MemoryFree(ptr); }
|
|||
|
||||
void MemoryCheckDebug()
|
||||
{
|
||||
if(PanicMode)
|
||||
return;
|
||||
MemoryCheck();
|
||||
Mutex::Lock __(sHeapLock2);
|
||||
DbgBlkHeader *p = dbg_live.next;
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
Loading…
Add table
Add a link
Reference in a new issue