X-Git-Url: https://code.delx.au/refind/blobdiff_plain/480ba418c97ece5557ac0efc5dc189ff19fb8b8f..b04a842814ccc991ed93a52acbd7ac27768be686:/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++) {