From 1a853973ab83ba72d22b39d871114dc22f8e3ed4 Mon Sep 17 00:00:00 2001
From: Paper <[EMAIL REDACTED]>
Date: Mon, 17 Feb 2025 22:27:17 -0500
Subject: [PATCH] thread/windows: fix stack overflow in exception naming
---
src/thread/windows/SDL_systhread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/thread/windows/SDL_systhread.c b/src/thread/windows/SDL_systhread.c
index c30694a247d2c..c5bee81f2309c 100644
--- a/src/thread/windows/SDL_systhread.c
+++ b/src/thread/windows/SDL_systhread.c
@@ -153,7 +153,7 @@ void SDL_SYS_SetupThread(const char *name)
inf.dwFlags = 0;
// The debugger catches this, renames the thread, continues on.
- RaiseException(SDL_DEBUGGER_NAME_EXCEPTION_CODE, 0, sizeof(inf) / sizeof(ULONG), (const ULONG_PTR *)&inf);
+ RaiseException(SDL_DEBUGGER_NAME_EXCEPTION_CODE, 0, sizeof(inf) / sizeof(ULONG_PTR), (const ULONG_PTR *)&inf);
RemoveVectoredExceptionHandler(exceptionHandlerHandle);
}
}