Patch by Bryce Groff: Fixed return values of the identify() hook.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31906 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -50,7 +50,7 @@ ext2_identify_partition(int fd, partition_data *partition, void **_cookie)
|
||||
ext2_super_block superBlock;
|
||||
status_t status = Volume::Identify(fd, &superBlock);
|
||||
if (status != B_OK)
|
||||
return status;
|
||||
return -1;
|
||||
|
||||
identify_cookie *cookie = new identify_cookie;
|
||||
memcpy(&cookie->super_block, &superBlock, sizeof(ext2_super_block));
|
||||
|
||||
@@ -457,7 +457,7 @@ efi_gpt_identify_partition(int fd, partition_data *partition, void **_cookie)
|
||||
status_t status = header->InitCheck();
|
||||
if (status < B_OK) {
|
||||
delete header;
|
||||
return status;
|
||||
return -1;
|
||||
}
|
||||
|
||||
*_cookie = header;
|
||||
|
||||
Reference in New Issue
Block a user