+// Finds a volume with the specified Identifier (a volume label, for the moment).
+// If found, sets *Volume to point to that volume. If not, leaves it unchanged.
+// Returns TRUE if a match was found, FALSE if not.
+static BOOLEAN FindVolume(REFIT_VOLUME **Volume, CHAR16 *Identifier) {
+ UINTN i = 0;
+ BOOLEAN Found = FALSE;
+
+ while ((i < VolumesCount) && (!Found)) {
+ if (StriCmp(Identifier, Volumes[i]->VolName) == 0) {
+ *Volume = Volumes[i];
+ Found = TRUE;
+ } // if
+ i++;
+ } // while()
+ return (Found);
+} // static VOID FindVolume()
+