FpDebug, Windows: Setting thread name by exception, check info of received exception

This commit is contained in:
Martin 2024-02-10 20:53:49 +01:00
parent a7e4fabecc
commit add996429b

View File

@ -1471,6 +1471,7 @@ begin
t := AThread;
with MDebugEvent.Exception.ExceptionRecord do begin
if (NumberParameters >= 3) and
((ExceptionInformation[0] and $ffffffff) = $1000) and
(TThreadID(ExceptionInformation[2]) <> 0) and
(TThreadID(ExceptionInformation[2]) <> TThreadID(-1))
then begin