mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Range check error (LCL HWND is signed on 32-bit, unsigned on 64-bit; WLX THandle is always unsigned).
This commit is contained in:
parent
aee2ed1b64
commit
3be720704a
1 changed files with 5 additions and 1 deletions
|
|
@ -296,7 +296,9 @@ begin
|
|||
begin
|
||||
Result:= True;
|
||||
DebugLn('I = '+IntToStr(I));
|
||||
{$PUSH}{$R-}
|
||||
if not WlxPrepareContainer(pnlLister.Handle) then {TODO: ERROR and exit;};
|
||||
{$POP}
|
||||
WlxPlugins.LoadModule(I);
|
||||
DebugLn('WlxModule.Name = ', WlxPlugins.GetWLxModule(I).Name);
|
||||
if WlxPlugins.GetWLxModule(I).CallListLoad(pnlLister.Handle, sFileName, {TODO: showFlags}0) = 0 then
|
||||
|
|
@ -317,7 +319,9 @@ end;
|
|||
|
||||
procedure TfrmViewer.ExitPluginMode;
|
||||
begin
|
||||
{$PUSH}{$R-}
|
||||
WlxPrepareContainer(pnlLister.Handle,true);
|
||||
{$POP}
|
||||
if (WlxPlugins.Count > 0) and (ActivePlugin >= 0) then
|
||||
begin
|
||||
WlxPlugins.GetWLxModule(ActivePlugin).CallListCloseWindow;
|
||||
|
|
@ -848,4 +852,4 @@ end;
|
|||
initialization
|
||||
{$I fviewer.lrs}
|
||||
|
||||
end.
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue