From 2ad2951ed5fa2c91496d92732caca264efb52019 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Wed, 28 Jul 2010 01:06:58 +0000 Subject: [PATCH] Fix yet another cause of the boot volume icon being mapped incorrectly (as pointed out by a gcc warning): the value chosen for B_BOOT_DISK was well outside of the range of the directory_which enum. Consequently it wound up getting truncated and never correctly being matched in the switch that grabs the icon from resources. Curiously, this bug/warning only showed up with a cross-compiled executable, but not with one compiled with the development toolchain compiler packages. Should hopefully nail this bug once and for all. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37781 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/FSUtils.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kits/tracker/FSUtils.h b/src/kits/tracker/FSUtils.h index dd4a54c7ef..56c76a2ff2 100644 --- a/src/kits/tracker/FSUtils.h +++ b/src/kits/tracker/FSUtils.h @@ -264,8 +264,7 @@ const uint32 B_USER_DOWNLOADS_DIRECTORY = 3503; const uint32 B_USER_DESKBAR_APPS_DIRECTORY = 3504; const uint32 B_USER_DESKBAR_PREFERENCES_DIRECTORY = 3505; const uint32 B_USER_DESKBAR_DEVELOP_DIRECTORY = 3506; - -const int32 B_BOOT_DISK = 10000000; +const uint32 B_BOOT_DISK = 3507; // map /boot into the directory_which enum for convenience class WellKnowEntryList {