Replaced the simple "return" with the RETURN_ERROR() macro for fatal errors
to make them visible in the log. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1927 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
|
||||
#include "BufferPool.h"
|
||||
#include "Debug.h"
|
||||
#include "cpp.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
@@ -70,7 +71,7 @@ BufferPool::RequestBuffers(uint32 blockSize)
|
||||
// free already allocated buffers
|
||||
for (;i-- > 0; i++)
|
||||
free(buffers[i]);
|
||||
return B_NO_MEMORY;
|
||||
RETURN_ERROR(B_NO_MEMORY);
|
||||
}
|
||||
if (i > 0)
|
||||
*(buffers[i]) = buffers[i - 1];
|
||||
@@ -89,7 +90,7 @@ BufferPool::RequestBuffers(uint32 blockSize)
|
||||
free(buffers[i]);
|
||||
}
|
||||
|
||||
return status;
|
||||
RETURN_ERROR(status);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user