X-Git-Url: https://code.delx.au/refind/blobdiff_plain/ea0768929fa3b215a77375130c19ae0710947400..849bd62e3cc11418d8645c067dea5ec088b3c30a:/refind/lib.c diff --git a/refind/lib.c b/refind/lib.c index 9c7d1f6..f38ac64 100644 --- a/refind/lib.c +++ b/refind/lib.c @@ -1094,12 +1094,12 @@ VOID ScanVolumes(VOID) // get all filesystem handles Status = LibLocateHandle(ByProtocol, &BlockIoProtocol, NULL, &HandleCount, &Handles); - UuidList = AllocateZeroPool(sizeof(EFI_GUID) * HandleCount); if (Status == EFI_NOT_FOUND) { return; // no filesystems. strange, but true... } if (CheckError(Status, L"while listing all file systems")) return; + UuidList = AllocateZeroPool(sizeof(EFI_GUID) * HandleCount); // first pass: collect information about all handles for (HandleIndex = 0; HandleIndex < HandleCount; HandleIndex++) {