summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-12 03:09:40 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-12 03:09:40 +0000
commit57257e165f8d6252e1b3cc12541f809174ec4765 (patch)
tree39251b32c63f1b291d51cbb38fd81586a277dc1f /EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c
parent70b6db908a6bb6f12bd8ebc2339d69b8acbc96f3 (diff)
downloadedk2-platforms-57257e165f8d6252e1b3cc12541f809174ec4765.tar.xz
1.Fix a typo in DevicePath Driver
2.Fix a bug in EBC, the periodic callback timer should be 1s 3.Add a dependency file for DriverSample in UI since it consume EFI_SIMPLE_TEXT_OUT protocol. 4.Fix a memory allocation defects in DriverSample. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2227 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c')
-rw-r--r--EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c b/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c
index c383d1660a..dd316114bf 100644
--- a/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c
+++ b/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c
@@ -242,7 +242,7 @@ Returns:
//
// Allocate space for creation of Buffer
//
- QuestionId = (UINT16) ((UINTN) (&NVStruc.DynamicCheck));
+ QuestionId = (UINT16) ((UINTN) (&NVStruc.DynamicCheck) - (UINTN) (&NVStruc));
Status = gBS->AllocatePool (
EfiBootServicesData,
0x1000,