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:
Ingo Weinhold 2008-08-18 15:10:47 +00:00
parent af8fa701f8
commit 9d4ec2ee7f

View File

@ -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));