Page MenuHomeFreeBSD

D58068.diff
No OneTemporary

D58068.diff

diff --git a/stand/efi/loader/memdisk.c b/stand/efi/loader/memdisk.c
--- a/stand/efi/loader/memdisk.c
+++ b/stand/efi/loader/memdisk.c
@@ -50,11 +50,15 @@
dl_state *ctx = Context;
decomp_state *dctx = ctx->dctx;
+ if (FileOffset == 0 && BufferLength == 0) {
+ printf("Staritng the download\n");
+ return (EFI_SUCCESS);
+ }
+
/*
- * Make a note of the size when we're hinted about it. But once
- * we start the download, ignore the hints.
+ * Make a note of the size when we're hinted about it.
*/
- if (ctx->size == 0 && BufferLength == 0) {
+ if (BufferLength == 0) {
printf("We know we will download %llu bytes\n", ULL(FileOffset));
ctx->size = FileOffset;
ctx->status = EFI_SUCCESS;

File Metadata

Mime Type
text/plain
Expires
Sun, Jul 12, 4:18 PM (21 m, 13 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34829989
Default Alt Text
D58068.diff (712 B)

Event Timeline