This driver is responsible for the registration of child drivers\r
and the abstraction of the QNC SMI sources.\r
\r
-Copyright (c) 2013-2015 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
// Gather information about the registration request\r
//\r
Record->Callback = DispatchFunction;\r
- Record->ChildContext = *RegisterContext;\r
+ Record->CallbackContext = RegisterContext;\r
+ CopyMem (&Record->ChildContext, RegisterContext, sizeof (QNC_SMM_CONTEXT));\r
\r
Qualified = QUALIFIED_PROTOCOL_FROM_GENERIC (This);\r
\r
//\r
// Update ChildContext again as SwSmiInputValue has been changed\r
//\r
- Record->ChildContext = *RegisterContext;\r
+ CopyMem (&Record->ChildContext, RegisterContext, sizeof (QNC_SMM_CONTEXT));\r
}\r
\r
//\r
// it supplied in registration. Simply pass back what it gave us.\r
//\r
ASSERT (RecordToExhaust->Callback != NULL);\r
- Context = RecordToExhaust->ChildContext;\r
ContextsMatch = TRUE;\r
}\r
\r
\r
RecordToExhaust->Callback (\r
(EFI_HANDLE) & RecordToExhaust->Link,\r
- &Context,\r
+ RecordToExhaust->CallbackContext,\r
CommunicationBuffer,\r
&BufferSize\r
);\r