Removed a crash because of a call to get_menu_info in init_interface_kit()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6118 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -60,7 +60,6 @@
|
|||||||
// Local Includes --------------------------------------------------------------
|
// Local Includes --------------------------------------------------------------
|
||||||
|
|
||||||
// Local Defines ---------------------------------------------------------------
|
// Local Defines ---------------------------------------------------------------
|
||||||
#define RUN_WITHOUT_REGISTRAR
|
|
||||||
|
|
||||||
// Globals ---------------------------------------------------------------------
|
// Globals ---------------------------------------------------------------------
|
||||||
BApplication* be_app = NULL;
|
BApplication* be_app = NULL;
|
||||||
@@ -773,21 +772,27 @@ void BApplication::InitData(const char* signature, status_t* error)
|
|||||||
}
|
}
|
||||||
#endif // ifdef RUN_WITHOUT_REGISTRAR
|
#endif // ifdef RUN_WITHOUT_REGISTRAR
|
||||||
|
|
||||||
// TODO: Not sure about the order
|
// TODO: Not completely sure about the order, but this should be close.
|
||||||
|
|
||||||
|
// An app_server connection is necessary for a lot of stuff, so get that first.
|
||||||
if (fInitError == B_OK)
|
if (fInitError == B_OK)
|
||||||
connect_to_app_server();
|
connect_to_app_server();
|
||||||
if (fInitError == B_OK)
|
if (fInitError == B_OK)
|
||||||
setup_server_heaps();
|
setup_server_heaps();
|
||||||
if (fInitError == B_OK)
|
if (fInitError == B_OK)
|
||||||
get_scs();
|
get_scs();
|
||||||
if (fInitError == B_OK)
|
|
||||||
fInitError = _init_interface_kit_();
|
|
||||||
|
|
||||||
// init be_app and be_app_messenger
|
// init be_app and be_app_messenger
|
||||||
if (fInitError == B_OK) {
|
if (fInitError == B_OK) {
|
||||||
be_app = this;
|
be_app = this;
|
||||||
be_app_messenger = BMessenger(NULL, this);
|
be_app_messenger = BMessenger(NULL, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize the IK after we have set be_app because of a construction of a
|
||||||
|
// BAppServerLink (which depends on be_app) nested inside the call to get_menu_info.
|
||||||
|
if (fInitError == B_OK)
|
||||||
|
fInitError = _init_interface_kit_();
|
||||||
// set the BHandler's name
|
// set the BHandler's name
|
||||||
if (fInitError == B_OK)
|
if (fInitError == B_OK)
|
||||||
SetName(ref.name);
|
SetName(ref.name);
|
||||||
|
|||||||
Reference in New Issue
Block a user