Commit 121f88a
committed
Return attributes in GetVariable() on buffer error
UEFI 2.8 and newer specifies that GetVariable() returns variable
attributes even if the EFI_BUFFER_TOO_SMALL error is encountered.
Return this value in v2 protocol.
Note that in v2, in the EFI_BUFFER_TOO_SMALL case, `attributes` comes
after `data_len` to be compatible with v1.
Signed-off-by: Tu Dinh <[email protected]>1 parent a94771b commit 121f88a
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
| |||
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| 314 | + | |
| 315 | + | |
313 | 316 | | |
314 | 317 | | |
315 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
| 906 | + | |
906 | 907 | | |
907 | 908 | | |
908 | 909 | | |
| |||
918 | 919 | | |
919 | 920 | | |
920 | 921 | | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
921 | 927 | | |
922 | 928 | | |
923 | 929 | | |
| |||
0 commit comments