Removed a minor bug from the InitData server communication code

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3451 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2003-06-09 12:36:56 +00:00
parent 518c1e3f62
commit 14f0c2cfa2

View File

@ -746,7 +746,7 @@ void BApplication::InitData(const char* signature, status_t* error)
{
// Create the port so that the app_server knows where to send messages
fServerTo=create_port(100,"a<fServerTo");
if(fServerTo!=B_BAD_VALUE || fServerTo!=B_NO_MORE_PORTS)
if(fServerTo!=B_BAD_VALUE && fServerTo!=B_NO_MORE_PORTS)
{
// AS_CREATE_APP:
@ -770,7 +770,6 @@ void BApplication::InitData(const char* signature, status_t* error)
}
else
fInitError=replyerr;
}
else
fInitError=fServerTo;