Skip to content
Snippets Groups Projects
Commit beb50c4a authored by deuce's avatar deuce
Browse files

Use correct string conversion function.

parent 189bb5bf
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ bool SBBS_User_ListApp::OnInit()
}
memset(&cfg, 0, sizeof(cfg));
cfg.size=sizeof(cfg);
SAFECOPY(cfg.ctrl_dir, ctrlDir.fn_str());
SAFECOPY(cfg.ctrl_dir, ctrlDir.mb_str(wxConvUTF8));
prep_dir("", cfg.ctrl_dir, sizeof(cfg.ctrl_dir));
if(!isdir(cfg.ctrl_dir)) {
wxMessageDialog *dlg = new wxMessageDialog(NULL, _("SBBSCTRL environment variable is not set to a directory. This variable must be set to the ctrl directory (ie: /sbbs/ctrl)."), _("SBBSCTRL Not A Directory"));
......@@ -53,15 +53,13 @@ bool SBBS_User_ListApp::OnInit()
return false;
}
//(*AppInitialize
bool wxsOK = true;
bool wxsOK = true;
wxInitAllImageHandlers();
if ( wxsOK )
{
SBBS_User_ListFrame* Frame = new SBBS_User_ListFrame(0);
Frame->Show();
SetTopWindow(Frame);
SBBS_User_ListFrame* Frame = new SBBS_User_ListFrame(0);
Frame->Show();
SetTopWindow(Frame);
}
//*)
return wxsOK;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment