Skip to content

Commit 9805cf4

Browse files
committed
Remove incorrect addressof from InstallConfigurationTable sample
InstallConfigurationTable takes a pointer to a GUID and a pointer to a buffer. The sample passes the pointer to the pointer, which means the sample is wrong. When developers use this sample as the starting point for their code, they will have a bug that is very tricky to see in their code and tricky to diagnose. This issue wasted several hours of my time today.
1 parent 20da2f1 commit 9805cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

5_uefi_services/52_services_that_uefi_drivers_rarely_use/5210_installconfigurationtable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ UndiConfigTable = (UNDI_CONFIG_TABLE *)AllocateRuntimeZeroPool (
118118
//
119119
Status = gBS->InstallConfigurationTable (
120120
&gEfiNetworkInterfaceIdentifierProtocolGuid_31,
121-
&UndiConfigTable
121+
UndiConfigTable
122122
);
123123
if (EFI_ERROR (Status)) {
124124
return Status;

0 commit comments

Comments
 (0)