From ddcab3b57da9673c1aafe224137989c609c1abcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 13 Jun 2006 13:40:30 +0000 Subject: [PATCH] also check for GetCurrentSpecifier status instead of just the index git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17821 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Looper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/app/Looper.cpp b/src/kits/app/Looper.cpp index 6e5c2ba20b..b4bffb58cb 100644 --- a/src/kits/app/Looper.cpp +++ b/src/kits/app/Looper.cpp @@ -1477,8 +1477,8 @@ BLooper::resolve_specifier(BHandler* target, BMessage* msg) return NULL; // Get current specifier index (may change in ResolveSpecifier()) - msg->GetCurrentSpecifier(&index); - } while (newTarget && newTarget != target && index >= 0); + err = msg->GetCurrentSpecifier(&index); + } while (newTarget && newTarget != target && !err && index >= 0); return newTarget; }