diff options
author | Shmuel Zeigerman <solomuz0@gmail.com> | 2022-03-22 19:21:46 +0300 |
---|---|---|
committer | Shmuel Zeigerman <solomuz0@gmail.com> | 2022-03-22 19:21:46 +0300 |
commit | 7c8bc03f5c4eaf73a3ae874c19b36a4fc2322600 (patch) | |
tree | 48a4be67206c9ed5bed7978f2bacf150b263f0eb /far2l/src/plug | |
parent | cb1f7a94f3b687e8b2df24a801603c982d74656d (diff) |
Fix crash with ANSI plugins that call DefDlgProc
Diffstat (limited to 'far2l/src/plug')
-rw-r--r-- | far2l/src/plug/wrap.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/far2l/src/plug/wrap.cpp b/far2l/src/plug/wrap.cpp index 6491f101..2d6fa4df 100644 --- a/far2l/src/plug/wrap.cpp +++ b/far2l/src/plug/wrap.cpp @@ -931,7 +931,7 @@ int WINAPI ConvertNameToRealA(const char *Src,char *Dest,int DestSize) int WINAPI FarGetReparsePointInfoA(const char *Src,char *Dest,int DestSize) { - + /*if (Src && *Src) { FARString strSrc(Src); @@ -1878,6 +1878,12 @@ LONG_PTR WINAPI DlgProcA(HANDLE hDlg, int Msg, int Param1, LONG_PTR Param2) LONG_PTR WINAPI FarDefDlgProcA(HANDLE hDlg, int Msg, int Param1, LONG_PTR Param2) { + if (Msg == DN_DRAWDLGITEM || Msg == DN_EDITCHANGE) + { + FarDialogItem* di = CurrentDialogItem(hDlg, Param1); + if (di) + Param2 = (LONG_PTR)di; + } return FarDefDlgProc(hDlg, Msg, Param1, Param2); } |