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:
parent
ae56d39432
commit
d8c0f6e4f5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user