EFI_STATUS Status;\r
UINTN Result;\r
EFI_HANDLE Handle;\r
-\r
+ EFI_HANDLE hSourceProcessHandle;\r
+ EFI_HANDLE hSourceHandle;\r
+ EFI_HANDLE hTargetProcessHandle;\r
//\r
// Make sure the Timer Architectural Protocol is not already installed in the system\r
//\r
//\r
// Get the CPU Architectural Protocol instance\r
//\r
- Status = gBS->LocateProtocol (&gEfiCpuArchProtocolGuid, NULL, &mCpu);\r
+ Status = gBS->LocateProtocol (&gEfiCpuArchProtocolGuid, NULL, (VOID**)&mCpu);\r
ASSERT_EFI_ERROR (Status);\r
\r
//\r
// Get our handle so the timer tick thread can suspend\r
//\r
+ hSourceProcessHandle = gWinNt->GetCurrentProcess ();\r
+ hSourceHandle = gWinNt->GetCurrentThread ();\r
+ hTargetProcessHandle = gWinNt->GetCurrentProcess ();\r
Result = gWinNt->DuplicateHandle (\r
- gWinNt->GetCurrentProcess (),\r
- gWinNt->GetCurrentThread (),\r
- gWinNt->GetCurrentProcess (),\r
+ hSourceProcessHandle,\r
+ hSourceHandle,\r
+ hTargetProcessHandle,\r
&mNtMainThreadHandle,\r
0,\r
FALSE,\r