1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-12-23 21:51:09 +02:00

Fixed an interface casting issue in old Delphi versions

This commit is contained in:
Salvador Díaz Fau
2020-08-08 22:06:02 +02:00
parent 64a9eabcaf
commit ce722b81c3
2 changed files with 2 additions and 2 deletions

View File

@@ -320,7 +320,7 @@ begin
include_incognito <> 0,
TempBrowser);
if (TempBrowser <> nil) and (TempBrowser is TCefBrowserRef) then
if (TempBrowser <> nil) {$IFDEF DELPHI16_UP}and (TempBrowser is TCefBrowserRef){$ENDIF} then
Result := TCefBrowserRef(TempBrowser).wrap;
finally
TempBrowser := nil;