Skip to content
Snippets Groups Projects
Commit ca7f28e4 authored by rswindell's avatar rswindell
Browse files

error string is cleared before calling load_cfg.

Removed truncsp definition (now exported from sbbs.dll).
parent 568d9f1d
No related branches found
No related tags found
No related merge requests found
......@@ -123,18 +123,6 @@ char* tz_str[]={
,"Wellington"
};
/****************************************************************************/
/* Truncates white-space chars off end of 'str' */
/****************************************************************************/
void truncsp(char *str)
{
uint c;
c=strlen(str);
while(c && (uchar)str[c-1]<=SP) c--;
str[c]=0;
}
//---------------------------------------------------------------------------
__fastcall TConfigWizard::TConfigWizard(TComponent* Owner)
: TForm(Owner)
......@@ -151,6 +139,7 @@ void __fastcall TConfigWizard::FormShow(TObject *Sender)
SAFECOPY(scfg.ctrl_dir,MainForm->CtrlDirectory.c_str());
scfg.size=sizeof(scfg);
char error[256];
error[0]=0;
if(!load_cfg(&scfg,NULL,FALSE,error)) {
Application->MessageBox(error,"ERROR Loadin Configuration"
,MB_OK|MB_ICONEXCLAMATION);
......
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