From 66ee284bc7337391fcdff13e5a1abb03766bd2e2 Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 20 Mar 2012 16:30:07 +0000 Subject: [PATCH] Fix bug in unified exception model. --- objcxx_eh.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/objcxx_eh.cc b/objcxx_eh.cc index 92a96e5..1dc98c2 100644 --- a/objcxx_eh.cc +++ b/objcxx_eh.cc @@ -123,10 +123,12 @@ bool gnustep::libobjc::__objc_id_type_info::__do_catch(const type_info *thrownTy // Id catch matches any ObjC throw if (dynamic_cast(thrownType)) { + *obj = **(id**)obj; return true; } if (dynamic_cast(thrownType)) { + *obj = **(id**)obj; return true; } return false;