From 1dfa5a7d2a08ff680e838c7433d5f509c09286fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 18 Aug 2008 22:55:03 +0000 Subject: [PATCH] size is actually icon_size, not data size, thanks Axel for pointing out! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27053 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/Mime.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/kits/storage/Mime.cpp b/src/kits/storage/Mime.cpp index d51d7418eb..7c7d18d455 100644 --- a/src/kits/storage/Mime.cpp +++ b/src/kits/storage/Mime.cpp @@ -202,9 +202,6 @@ get_device_icon(const char *device, void *icon, int32 size) return B_NO_MEMORY; } - if (size < icon8->BitsLength()) - return B_BAD_VALUE; - status = BIconUtils::GetVectorIcon(data, dataSize, icon32); if (status == B_OK) status = BIconUtils::ConvertToCMAP8(icon32, icon8);