mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-22 17:11:43 +00:00
thread/windows: fix stack overflow in exception naming
This commit is contained in:
@@ -153,7 +153,7 @@ void SDL_SYS_SetupThread(const char *name)
|
|||||||
inf.dwFlags = 0;
|
inf.dwFlags = 0;
|
||||||
|
|
||||||
// The debugger catches this, renames the thread, continues on.
|
// 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);
|
RemoveVectoredExceptionHandler(exceptionHandlerHandle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user