From beb50c4ad7363d08fe708dfb8ed8b77b205c574d Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Tue, 25 Oct 2011 23:16:38 +0000
Subject: [PATCH] Use correct string conversion function.

---
 src/sbbs3/userlist/SBBS_User_ListApp.cpp | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/sbbs3/userlist/SBBS_User_ListApp.cpp b/src/sbbs3/userlist/SBBS_User_ListApp.cpp
index de74e2ea61..c140b8b1e0 100644
--- a/src/sbbs3/userlist/SBBS_User_ListApp.cpp
+++ b/src/sbbs3/userlist/SBBS_User_ListApp.cpp
@@ -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;
-- 
GitLab