From fe76020396978ca8499bacb95964f6ce71e7d337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 14 May 2008 15:47:22 +0000 Subject: [PATCH] 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 --- src/kits/storage/disk_device/DiskDeviceRoster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/storage/disk_device/DiskDeviceRoster.cpp b/src/kits/storage/disk_device/DiskDeviceRoster.cpp index 71b5eb1c44..242d119bad 100644 --- a/src/kits/storage/disk_device/DiskDeviceRoster.cpp +++ b/src/kits/storage/disk_device/DiskDeviceRoster.cpp @@ -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))