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
This commit is contained in:
Rene Gollent
2010-12-04 16:55:57 +00:00
parent 04f8af7bf9
commit 17e54d27dc
+1 -1
View File
@@ -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)