Signatures are case insensitive - I hope I fixed all occurences now... (but probably not)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13731 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Copyright (c) 2001-2002, OpenBeOS
|
// Copyright (c) 2001-2005, Haiku
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
// copy of this software and associated documentation files (the "Software"),
|
// copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -546,7 +546,7 @@ BMessenger::InitData(const char *signature, team_id team, status_t *result)
|
|||||||
// a team ID is given
|
// a team ID is given
|
||||||
error = be_roster->GetRunningAppInfo(team, &info);
|
error = be_roster->GetRunningAppInfo(team, &info);
|
||||||
// Compare the returned signature with the supplied one.
|
// Compare the returned signature with the supplied one.
|
||||||
if (error == B_OK && signature && strcmp(signature, info.signature))
|
if (error == B_OK && signature && strcasecmp(signature, info.signature))
|
||||||
error = B_MISMATCHED_VALUES;
|
error = B_MISMATCHED_VALUES;
|
||||||
}
|
}
|
||||||
// check whether the app flags say B_ARGV_ONLY
|
// check whether the app flags say B_ARGV_ONLY
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Copyright (c) 2001-2002, OpenBeOS
|
// Copyright (c) 2001-2005, Haiku
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
// copy of this software and associated documentation files (the "Software"),
|
// copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -1903,7 +1903,7 @@ BRoster::resolve_app(const char *inType, entry_ref *ref,
|
|||||||
char signature[B_MIME_TYPE_LENGTH];
|
char signature[B_MIME_TYPE_LENGTH];
|
||||||
if (appFileInfo.SetTo(&appFile) == B_OK
|
if (appFileInfo.SetTo(&appFile) == B_OK
|
||||||
&& appFileInfo.GetSignature(signature) == B_OK) {
|
&& appFileInfo.GetSignature(signature) == B_OK) {
|
||||||
if (!strcmp(appMeta.Type(), signature))
|
if (!strcasecmp(appMeta.Type(), signature))
|
||||||
appMeta.SetAppHint(&_appRef);
|
appMeta.SetAppHint(&_appRef);
|
||||||
else {
|
else {
|
||||||
appMeta.SetAppHint(NULL);
|
appMeta.SetAppHint(NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user