From 17e54d27dc824598f56f7fc07596bca553d14efc Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 4 Dec 2010 16:55:57 +0000 Subject: [PATCH] r39419 accidentally introduced an additional local variable that shadowed the one used to return errors from _LaunchApp. This had the net effect that errors were never returned correctly. Fixes #6956. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39723 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Roster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/app/Roster.cpp b/src/kits/app/Roster.cpp index d50c53d1f8..54f2a7f128 100644 --- a/src/kits/app/Roster.cpp +++ b/src/kits/app/Roster.cpp @@ -2261,7 +2261,7 @@ BRoster::_LaunchApp(const char* mimeType, const entry_ref* ref, // find the app entry_ref appRef; char signature[B_MIME_TYPE_LENGTH]; - status_t error = _ResolveApp(mimeType, docRef, &appRef, signature, + error = _ResolveApp(mimeType, docRef, &appRef, signature, &appFlags, &wasDocument); DBG(OUT(" find app: %s (%lx)\n", strerror(error), error)); if (error != B_OK)