From 9ab28552cb07866193808fd6f337e4504ba2b198 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 2 Jan 2003 11:33:47 +0000 Subject: [PATCH] Added 1.5 sec delay after running ipconfig (give it time to run), before opening result text file. --- src/sbbs3/ctrl/ConfigWizardUnit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sbbs3/ctrl/ConfigWizardUnit.cpp b/src/sbbs3/ctrl/ConfigWizardUnit.cpp index 8020b39004..f7b329d102 100644 --- a/src/sbbs3/ctrl/ConfigWizardUnit.cpp +++ b/src/sbbs3/ctrl/ConfigWizardUnit.cpp @@ -157,6 +157,7 @@ void __fastcall TConfigWizard::FormShow(TObject *Sender) sprintf(str,"%s /c ipconfig /all > %sipconfig.txt" ,getenv("COMSPEC"),scfg.ctrl_dir); WinExec(str,SW_HIDE); /* there's got to be a better way! */ + Sleep(1500); /* give ipconfig time to run */ sprintf(str,"%sipconfig.txt",scfg.ctrl_dir); FILE* fp=fopen(str,"r"); char* p; -- GitLab