The return value of the identify_partition() hook is not error code
compatible. Small floats have to be returned. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27040 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
af8fa701f8
commit
9d4ec2ee7f
@ -94,11 +94,11 @@ bfs_identify_partition(int fd, partition_data* partition, void** _cookie)
|
||||
disk_super_block superBlock;
|
||||
status_t status = Volume::Identify(fd, &superBlock);
|
||||
if (status != B_OK)
|
||||
return status;
|
||||
return -1;
|
||||
|
||||
identify_cookie* cookie = new(std::nothrow) identify_cookie;
|
||||
if (cookie == NULL)
|
||||
return B_NO_MEMORY;
|
||||
return -1;
|
||||
|
||||
memcpy(&cookie->super_block, &superBlock, sizeof(disk_super_block));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user