Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162281176
D58068.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
712 B
Referenced Files
None
Subscribers
None
D58068.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D58068: laoder.efi: Fix error in download protcol
Attached
Detach File
Event Timeline
Log In to Comment