InitData(): Set the correct signature when pre-registered under a wrong one.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1435 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2002-10-07 21:52:15 +00:00
parent ae56d39432
commit d8c0f6e4f5

View File

@ -655,6 +655,9 @@ void BApplication::InitData(const char* signature, status_t* error)
fMsgPort = appInfo.port;
} else
appInfo.port = fMsgPort;
// check the signature and correct it, if necessary
if (strcmp(appInfo.signature, fAppName))
be_roster->SetSignature(team, fAppName);
// complete the registration
fInitError = be_roster->CompleteRegistration(team, thread,
appInfo.port);