[haiku-commits] r39723 - haiku/trunk/src/kits/app

Author: anevilyak
Date: 2010-12-04 17:55:57 +0100 (Sat, 04 Dec 2010)
New Revision: 39723
Changeset: http://dev.haiku-os.org/changeset/39723
Ticket: http://dev.haiku-os.org/ticket/6956

Modified:
   haiku/trunk/src/kits/app/Roster.cpp
Log:
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.



Modified: haiku/trunk/src/kits/app/Roster.cpp
===================================================================
--- haiku/trunk/src/kits/app/Roster.cpp 2010-12-04 14:33:02 UTC (rev 39722)
+++ haiku/trunk/src/kits/app/Roster.cpp 2010-12-04 16:55:57 UTC (rev 39723)
@@ -2261,7 +2261,7 @@
                // 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)


Other related posts: