From 5a2490df0e6753928a1322436a96e01ffb000f3a Mon Sep 17 00:00:00 2001 From: Nate DeSimone Date: Fri, 29 Sep 2023 15:16:33 -0700 Subject: [PATCH] EmulatorPkg: Update MMTimerThread() signature In the early 2000s as part of the x64 transition the definition for LPTIMECALLBACK changed from (UINT, UINT, DWORD, DWORD, DWORD) to (UINT, UINT, DWORD_PTR, DWORD_PTR, DWORD_PTR). However, the MMTimerThread() function was never updated to the new signature. Since the implementation does not use the last three parameters, this issue has not been caught until now. Cc: Andrew Fish Reviewed-by: Ray Ni Cc: Michael D Kinney Signed-off-by: Nate DeSimone --- EmulatorPkg/Win/Host/WinThunk.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/EmulatorPkg/Win/Host/WinThunk.c b/EmulatorPkg/Win/Host/WinThunk.c index e82735c6a0..0abe4727e0 100644 --- a/EmulatorPkg/Win/Host/WinThunk.c +++ b/EmulatorPkg/Win/Host/WinThunk.c @@ -264,11 +264,11 @@ volatile BOOLEAN mInterruptEnabled = FALSE; VOID CALLBACK MMTimerThread ( - UINT wTimerID, - UINT msg, - DWORD dwUser, - DWORD dw1, - DWORD dw2 + UINT wTimerID, + UINT msg, + DWORD_PTR dwUser, + DWORD_PTR dw1, + DWORD_PTR dw2 ) { UINT32 CurrentTick;