blob: 01a05c065aaf3516c4f08a8c2f0b2409d9f4d13e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Index: shellenv/exec.c
===================================================================
--- shellenv/exec.c (revision 36)
+++ shellenv/exec.c (working copy)
@@ -2079,6 +2079,10 @@
if (!EFI_ERROR (Status)) {
goto Done;
} else {
+ //
+ // Set ImageHandle to NULL if any error status is returned.
+ //
+ ImageHandle = NULL;
Status = LibGetImageHeader (
DevicePath,
&DosHeader,
|