Fixed return type of read_partition_map (status_t -> bool). Fixed PartitionMapParser::Parse(): It wrongly error checked for a NULL block, which is allowed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2819 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
19d8037692
commit
707fa51022
@ -85,7 +85,7 @@ PartitionMapParser::~PartitionMapParser()
|
|||||||
status_t
|
status_t
|
||||||
PartitionMapParser::Parse(const uint8 *block, PartitionMap *map)
|
PartitionMapParser::Parse(const uint8 *block, PartitionMap *map)
|
||||||
{
|
{
|
||||||
status_t error = (block && map ? B_OK : B_BAD_VALUE);
|
status_t error = (map ? B_OK : B_BAD_VALUE);
|
||||||
if (error == B_OK) {
|
if (error == B_OK) {
|
||||||
fMap = map;
|
fMap = map;
|
||||||
fMap->Unset();
|
fMap->Unset();
|
||||||
@ -277,7 +277,7 @@ std_ops(int32 op, ...)
|
|||||||
|
|
||||||
// read_partition_map
|
// read_partition_map
|
||||||
static
|
static
|
||||||
status_t
|
bool
|
||||||
read_partition_map(int deviceFD, const session_info *sessionInfo,
|
read_partition_map(int deviceFD, const session_info *sessionInfo,
|
||||||
const uchar *block, PartitionMap *map)
|
const uchar *block, PartitionMap *map)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user