Skip to content

Commit 8af2494

Browse files
committed
Fix typo.
1 parent 0759cc7 commit 8af2494

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Projects/Compil32.dpr

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ end;
203203

204204
begin
205205
{$IFNDEF STATICCOMPILER}
206-
if ISCmplrLibary = 0 then begin
206+
if ISCmplrLibrary = 0 then begin
207207
MessageBox(0, PChar(Format('Could not load %s.', [ISCmplrDLL])), nil, MB_OK or MB_ICONSTOP);
208208
Halt(3);
209209
end;

Projects/ISCC.dpr

+1-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ begin
561561
end;
562562

563563
{$IFNDEF STATICCOMPILER}
564-
if ISCmplrLibary = 0 then begin
564+
if ISCmplrLibrary = 0 then begin
565565
WriteStdErr(Format('Could not load %s.', [ISCmplrDLL]), True);
566566
Halt(1);
567567
end;

Projects/Src/Shared.CompilerInt.pas

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface
1818
ISCmplrDLL = 'ISCmplr.dll';
1919

2020
var
21-
ISCmplrLibary: HMODULE;
21+
ISCmplrLibrary: HMODULE;
2222

2323
{ The ISDllCompileScript function begins compilation of a script. See the above
2424
description of the TCompileScriptParams record. Return value is one of the
@@ -39,13 +39,13 @@ implementation
3939
initialization
4040
var FileName := AddBackslash(PathExtractPath(ParamStr(0))) + ISCmplrDLL;
4141
if TrustedFile(FileName) then begin
42-
ISCmplrLibary := SafeLoadLibrary(PChar(FileName), SEM_NOOPENFILEERRORBOX);
43-
if ISCmplrLibary <> 0 then begin
44-
ISDllCompileScript := GetProcAddress(ISCmplrLibary, 'ISDllCompileScriptW');
45-
ISDllGetVersion := GetProcAddress(ISCmplrLibary, 'ISDllGetVersion');
42+
ISCmplrLibrary := SafeLoadLibrary(PChar(FileName), SEM_NOOPENFILEERRORBOX);
43+
if ISCmplrLibrary <> 0 then begin
44+
ISDllCompileScript := GetProcAddress(ISCmplrLibrary, 'ISDllCompileScriptW');
45+
ISDllGetVersion := GetProcAddress(ISCmplrLibrary, 'ISDllGetVersion');
4646
if not Assigned(ISDllCompileScript) or not Assigned(ISDllGetVersion) then begin
47-
FreeLibrary(ISCmplrLibary);
48-
ISCmplrLibary := 0;
47+
FreeLibrary(ISCmplrLibrary);
48+
ISCmplrLibrary := 0;
4949
ISDllCompileScript := nil;
5050
ISDllGetVersion := nil;
5151
end;

0 commit comments

Comments
 (0)