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:
Ingo Weinhold
2009-07-29 13:12:48 +00:00
parent 265aebfa26
commit 53ef70a0df
2 changed files with 2 additions and 2 deletions
@@ -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;