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:
Stephan Aßmus
2008-05-14 15:47:22 +00:00
parent 07ddcd64cf
commit fe76020396
@@ -134,7 +134,7 @@ BDiskDeviceRoster::GetDiskSystem(BDiskSystem* system, const char* name)
int32 cookie = 0;
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)
|| !strcmp(name, info.short_name)
|| !strcmp(name, info.pretty_name))