Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShmuel Zeigerman <solomuz0@gmail.com>2022-03-22 19:21:46 +0300
committerShmuel Zeigerman <solomuz0@gmail.com>2022-03-22 19:21:46 +0300
commit7c8bc03f5c4eaf73a3ae874c19b36a4fc2322600 (patch)
tree48a4be67206c9ed5bed7978f2bacf150b263f0eb /far2l/src/plug
parentcb1f7a94f3b687e8b2df24a801603c982d74656d (diff)
Fix crash with ANSI plugins that call DefDlgProc
Diffstat (limited to 'far2l/src/plug')
-rw-r--r--far2l/src/plug/wrap.cpp8
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);
}