Skip to content

Commit

Permalink
thread/windows: fix stack overflow in exception naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpapersonic authored and slouken committed Feb 20, 2025
1 parent a40b2de commit 1a85397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread/windows/SDL_systhread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 1a85397

Please sign in to comment.