From d8c0f6e4f5b05d8205e7bd93b81376331ade7eb0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 7 Oct 2002 21:52:15 +0000 Subject: [PATCH] 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 --- src/kits/app/Application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kits/app/Application.cpp b/src/kits/app/Application.cpp index 95f7af79d3..23b457649d 100644 --- a/src/kits/app/Application.cpp +++ b/src/kits/app/Application.cpp @@ -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);