* uses std::nothrow when calling new.
* fix an UDF reference. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40281 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -47,7 +47,7 @@ static uint16 kCrcTable[256] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*! \brief Calculates the UDF crc checksum for the given byte stream.
|
/*! \brief Calculates the EXT4 crc checksum for the given byte stream.
|
||||||
|
|
||||||
Based on crc code from UDF-2.50 6.5, as permitted.
|
Based on crc code from UDF-2.50 6.5, as permitted.
|
||||||
This is reversed.
|
This is reversed.
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ static status_t
|
|||||||
ext2_mount(fs_volume* _volume, const char* device, uint32 flags,
|
ext2_mount(fs_volume* _volume, const char* device, uint32 flags,
|
||||||
const char* args, ino_t* _rootID)
|
const char* args, ino_t* _rootID)
|
||||||
{
|
{
|
||||||
Volume* volume = new Volume(_volume);
|
Volume* volume = new(std::nothrow) Volume(_volume);
|
||||||
if (volume == NULL)
|
if (volume == NULL)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
@@ -221,7 +221,7 @@ ext2_get_vnode(fs_volume* _volume, ino_t id, fs_vnode* _node, int* _type,
|
|||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
Inode* inode = new Inode(volume, id);
|
Inode* inode = new(std::nothrow) Inode(volume, id);
|
||||||
if (inode == NULL)
|
if (inode == NULL)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user