Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit d12cc01

Browse files
committed
Fix a bug passing the exception object.
A pointer to the exception object seems to be expected here.
1 parent e383a9b commit d12cc01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ldc/eh2.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ extern(C) EXCEPTION_DISPOSITION _d_eh_personality(EXCEPTION_RECORD *ExceptionRec
309309
}
310310
else
311311
{
312-
RtlUnwindEx(EstablisherFrame, cast(PVOID) landing_pad, ExceptionRecord, cast(PVOID) excobj, ContextRecord, dispatch.HistoryTable);
312+
RtlUnwindEx(EstablisherFrame, cast(PVOID) landing_pad, ExceptionRecord, cast(PVOID) &excobj, ContextRecord, dispatch.HistoryTable);
313313
fatalerror("_d_eh_personality: RtlUnwindEx failed");
314314
}
315315
}
@@ -350,7 +350,7 @@ extern(C) EXCEPTION_DISPOSITION _d_eh_personality(EXCEPTION_RECORD *ExceptionRec
350350
}
351351
else
352352
{
353-
RtlUnwindEx(EstablisherFrame, cast(PVOID) landing_pad, ExceptionRecord, cast(PVOID) excobj, ContextRecord, dispatch.HistoryTable);
353+
RtlUnwindEx(EstablisherFrame, cast(PVOID) landing_pad, ExceptionRecord, cast(PVOID) &excobj, ContextRecord, dispatch.HistoryTable);
354354
fatalerror("_d_eh_personality: RtlUnwindEx failed");
355355
}
356356
}
@@ -374,7 +374,7 @@ extern(C) EXCEPTION_DISPOSITION _d_eh_personality(EXCEPTION_RECORD *ExceptionRec
374374
}
375375
else
376376
{
377-
RtlUnwindEx(EstablisherFrame, cast(PVOID) landing_pad, ExceptionRecord, cast(PVOID) excobj, ContextRecord, dispatch.HistoryTable);
377+
RtlUnwindEx(EstablisherFrame, cast(PVOID) landing_pad, ExceptionRecord, cast(PVOID) &excobj, ContextRecord, dispatch.HistoryTable);
378378
fatalerror("_d_eh_personality: RtlUnwindEx failed");
379379
}
380380
}

0 commit comments

Comments
 (0)