From ef83c2837637c2729ce79cab07c894c4d0bb3bea Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 22 Jan 2011 18:39:16 +0000 Subject: [PATCH] CID 10351: Fix incorrect indentation that resulted in DiskSystemAddOnManager::PutAddOn() being broken in various ways due to incorrect curly brace placement. Among other things this probably led to add-ons not being unloaded correctly when they should have been. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40265 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/disk_device/DiskSystemAddOnManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/storage/disk_device/DiskSystemAddOnManager.cpp b/src/kits/storage/disk_device/DiskSystemAddOnManager.cpp index 82247914ba..4d00afe3ef 100644 --- a/src/kits/storage/disk_device/DiskSystemAddOnManager.cpp +++ b/src/kits/storage/disk_device/DiskSystemAddOnManager.cpp @@ -200,10 +200,11 @@ DiskSystemAddOnManager::PutAddOn(BDiskSystemAddOn* _addOn) } return; } + } for (int32 i = 0; AddOn* addOn = (AddOn*)fAddOnsToBeUnloaded.ItemAt(i); i++) { - if (_addOn == addOn->addOn) + if (_addOn == addOn->addOn) { _PutAddOn(i); return; }