From 9231d6b096f2585df7a6d319827141a66f63da74 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 6 Aug 2002 22:18:23 +0000 Subject: [PATCH] Added be_roster check in InitData(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@622 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Application.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/kits/app/Application.cpp b/src/kits/app/Application.cpp index c2219bdd9f..b90dd11e9d 100644 --- a/src/kits/app/Application.cpp +++ b/src/kits/app/Application.cpp @@ -635,6 +635,11 @@ void BApplication::InitData(const char* signature, status_t* error) } } } + // check whether be_roster is valid + if (fInitError == B_OK && !isRegistrar && !_is_valid_roster_mess_(false)) { + printf("FATAL: be_roster is not invalid. Is the registrar running?\n"); + fInitError = B_NO_INIT; + } // check whether or not we are pre-registered bool preRegistered = false; app_info appInfo;