!work.diff (1,899 bytes)
Index: dialog.cpp
===================================================================
--- dialog.cpp (revision 6577)
+++ dialog.cpp (working copy)
@@ -6101,14 +6101,14 @@
/*****************************************************************/
case DM_SETITEMDATA:
{
- void* PrewDataDialog=CurItem->UserData;
- CurItem->UserData=Param2;
- return reinterpret_cast<INT_PTR>(PrewDataDialog);
+ DWORD_PTR PrewDataDialog=CurItem->UserData;
+ CurItem->UserData=(DWORD_PTR)Param2;
+ return PrewDataDialog;
}
/*****************************************************************/
case DM_GETITEMDATA:
{
- return reinterpret_cast<INT_PTR>(CurItem->UserData);
+ return CurItem->UserData;
}
/*****************************************************************/
case DM_EDITUNCHANGEDFLAG: // -1 Get, 0 - Skip, 1 - Set; �������� ����� ��������.
Index: viewer.cpp
===================================================================
--- viewer.cpp (revision 6577)
+++ viewer.cpp (working copy)
@@ -3088,7 +3088,7 @@
my.hex_mode = (LastSearchHex != 0);
my.recursive = false;
//
- SearchDlg[SD_EDIT_TEXT].UserData = &my;
+ SearchDlg[SD_EDIT_TEXT].UserData = (DWORD_PTR)&my;
Dialog Dlg(SearchDlg,ARRAYSIZE(SearchDlg),ViewerSearchDlgProc);
Dlg.SetPosition(-1,-1,76,13);
Index: plugin.hpp
===================================================================
--- plugin.hpp (revision 6577)
+++ plugin.hpp (working copy)
@@ -494,7 +494,7 @@
FARDIALOGITEMFLAGS Flags;
const wchar_t *Data;
size_t MaxLength; // terminate 0 not included (if == 0 string size is unlimited)
- void* UserData;
+ DWORD_PTR UserData;
};
struct FarDialogItemData
@@ -2413,7 +2413,7 @@
HANDLE hPanel;
const wchar_t *Dir;
OPERATION_MODES OpMode;
- INT_PTR UserData;
+ DWORD_PTR UserData;
};
struct SetFindListInfo