+ // Add the volume's label up to the first space, dash, or underscore (if present)
+ // as a potential base for finding an icon
+ if ((Volume->VolName) && (StrLen(Volume->VolName) > 0)) {
+ Temp = StrDuplicate(Volume->VolName);
+ if (Temp != NULL) {
+ i = 0;
+ Length = StrLen(Temp);
+ do {
+ if ((Temp[i] == L' ') || (Temp[i] == L'_') || (Temp[i] == L'-'))
+ Temp[i] = 0;
+ } while ((Temp[i] != 0) && (++i < Length));
+ MergeStrings(&OSIconName, Temp, L',');
+ MyFreePool(Temp);
+ } // if
+ } // if
+