]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c
1.Fix a typo in DevicePath Driver
[mirror_edk2.git] / EdkModulePkg / Universal / UserInterface / DriverSample / DriverSample.c
index c383d1660ae639eb72ba00185f6f30a4bdc6219e..dd316114bf703f7af2fb61d9bd9db56ce96f7382 100644 (file)
@@ -242,7 +242,7 @@ Returns:
     //\r
     // Allocate space for creation of Buffer\r
     //\r
-    QuestionId = (UINT16) ((UINTN) (&NVStruc.DynamicCheck));\r
+    QuestionId = (UINT16) ((UINTN) (&NVStruc.DynamicCheck) - (UINTN) (&NVStruc));\r
     Status = gBS->AllocatePool (\r
                     EfiBootServicesData,\r
                     0x1000,\r