* _wasDocument may be NULL.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39425 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2010-11-14 11:27:58 +00:00
parent be3f9645a7
commit 954c60cb56

View File

@ -2452,9 +2452,10 @@ BRoster::_ResolveApp(const char* inType, entry_ref* ref,
entry_ref appRef;
status_t error;
if (inType) {
if (inType != NULL) {
error = _TranslateType(inType, &appMeta, &appRef, &appFile);
*_wasDocument = !(appMeta == inType);
if (_wasDocument != NULL)
*_wasDocument = !(appMeta == inType);
} else {
error = _TranslateRef(ref, &appMeta, &appRef, &appFile,
_wasDocument);