mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Zip - crash in the options dialog
(cherry picked from commit c9186d1e81)
This commit is contained in:
parent
fb2c5af2d1
commit
b17255bc35
1 changed files with 5 additions and 4 deletions
|
|
@ -41,13 +41,14 @@ uses
|
|||
ZipFunc, ZipOpt, ZipLng, AbZipTyp;
|
||||
|
||||
function GetComboBox(pDlg: PtrUInt; DlgItemName: PAnsiChar): PtrInt;
|
||||
var
|
||||
Index: IntPtr;
|
||||
begin
|
||||
with gStartupInfo do
|
||||
begin
|
||||
Index:= SendDlgMsg(pDlg, DlgItemName, DM_LISTGETITEMINDEX, 0, 0);
|
||||
Result:= SendDlgMsg(pDlg, DlgItemName, DM_LISTGETDATA, Index, 0);
|
||||
Result:= SendDlgMsg(pDlg, DlgItemName, DM_LISTGETITEMINDEX, 0, 0);
|
||||
if Result >= 0 then
|
||||
begin
|
||||
Result:= SendDlgMsg(pDlg, DlgItemName, DM_LISTGETDATA, Result, 0);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue