Fixed copy'n'paste error. It caused update_mime_info() to remove the signature

of an object file, if the file's resources didn't specify supported
types. Both under Haiku itself and for the Linux build. This finally closes
bug 170 (AboutHaiku not being startable from Deskbar when built under
Linux).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17354 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2006-05-07 17:53:13 +00:00
parent ae219f104e
commit aa8265a5be
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ UpdateMimeInfoThread::DoMimeUpdate(const entry_ref *entry, bool *entryIsDir)
err = appFileInfoWrite.SetSupportedTypes(&supportedTypes);
hasSupportedTypes = true;
} else if (err == B_ENTRY_NOT_FOUND)
err = appFileInfoWrite.SetSignature(NULL);
err = appFileInfoWrite.SetSupportedTypes(NULL);
if (err != B_OK)
return err;

View File

@ -147,7 +147,7 @@ UpdateMimeInfoThread::DoMimeUpdate(const entry_ref *entry, bool *entryIsDir)
err = appFileInfoWrite.SetSupportedTypes(&supportedTypes);
hasSupportedTypes = true;
} else if (err == B_ENTRY_NOT_FOUND)
err = appFileInfoWrite.SetSignature(NULL);
err = appFileInfoWrite.SetSupportedTypes(NULL);
if (err != B_OK)
return err;