more precautions to prevent potential errors while reading prompts
This commit is contained in:
parent
14c0341265
commit
6f037b3258
|
@ -231,9 +231,10 @@ Begin
|
||||||
FileMode := 66;
|
FileMode := 66;
|
||||||
|
|
||||||
{$I-}
|
{$I-}
|
||||||
Reset (PromptFile);
|
Assign (PromptFile, Config.DataPath + Theme.FileName + '.thm');
|
||||||
Seek (PromptFile, N);
|
Reset (PromptFile);
|
||||||
Read (PromptFile, Prompt);
|
Seek (PromptFile, N);
|
||||||
|
Read (PromptFile, Prompt);
|
||||||
{$I+}
|
{$I+}
|
||||||
|
|
||||||
If IoResult <> 0 Then Begin
|
If IoResult <> 0 Then Begin
|
||||||
|
|
Loading…
Reference in New Issue