GetDiskSystem() is supposed to find the system by name, it should not influence
the internal enumaration for GetNextDiskSystem(). The compiler spotted that one actually... :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25490 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -134,7 +134,7 @@ BDiskDeviceRoster::GetDiskSystem(BDiskSystem* system, const char* name)
|
|||||||
|
|
||||||
int32 cookie = 0;
|
int32 cookie = 0;
|
||||||
user_disk_system_info info;
|
user_disk_system_info info;
|
||||||
while (_kern_get_next_disk_system_info(&fDiskSystemCookie, &info) == B_OK) {
|
while (_kern_get_next_disk_system_info(&cookie, &info) == B_OK) {
|
||||||
if (!strcmp(name, info.name)
|
if (!strcmp(name, info.name)
|
||||||
|| !strcmp(name, info.short_name)
|
|| !strcmp(name, info.short_name)
|
||||||
|| !strcmp(name, info.pretty_name))
|
|| !strcmp(name, info.pretty_name))
|
||||||
|
|||||||
Reference in New Issue
Block a user