Skip to content

Commit 7098df2

Browse files
author
pyscripter
committed
TPythonEngine.DoOpenDll modified
1 parent aa43315 commit 7098df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4812,12 +4812,12 @@ procedure TPythonEngine.DoOpenDll(const aDllName : String);
48124812
if UseLastKnownVersion then
48134813
for i:= Integer(COMPILED_FOR_PYTHON_VERSION_INDEX) to High(PYTHON_KNOWN_VERSIONS) do
48144814
begin
4815+
RegVersion := PYTHON_KNOWN_VERSIONS[i].RegVersion;
48154816
FDLLHandle := SafeLoadLibrary(GetDllPath+PYTHON_KNOWN_VERSIONS[i].DllName);
48164817
if IsHandleValid then
48174818
begin
48184819
DllName := PYTHON_KNOWN_VERSIONS[i].DllName;
48194820
APIVersion := PYTHON_KNOWN_VERSIONS[i].APIVersion;
4820-
RegVersion := PYTHON_KNOWN_VERSIONS[i].RegVersion;
48214821
Exit;
48224822
end;
48234823
if not PYTHON_KNOWN_VERSIONS[i].CanUseLatest then

0 commit comments

Comments
 (0)