View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001991 | Wishes | Plugins API.Panel | public | 2012-01-16 20:12 | 2013-02-03 00:33 |
| Reporter | Maximus | Assigned To | zg | ||
| Priority | normal | Severity | feature | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.0 | ||||
| Fixed in Version | 3.0 | ||||
| Summary | 0001991: Параметры AnalyzeW | ||||
| Description | Передавать вместе с OPEN_ANALYSE информацию об открываемом файле | ||||
| Tags | No tags attached. | ||||
| Build | 2395 | ||||
|
|
Analyse.diff (1,137 bytes)
Index: plugins.cpp
===================================================================
--- plugins.cpp (revision 7155)
+++ plugins.cpp (working copy)
@@ -775,11 +775,6 @@
break;
}
- if(Data)
- {
- delete[] Data;
- }
-
if (items.getCount() && (hResult != (HANDLE)-2))
{
bool OnlyOne = (items.getCount() == 1) && !(Name && Opt.PluginConfirm.OpenFilePlugin && Opt.PluginConfirm.StandardAssociation && Opt.PluginConfirm.EvenIfOnlyOnePlugin);
@@ -836,7 +831,13 @@
if (pResult && pResult->hPlugin == INVALID_HANDLE_VALUE)
{
- HANDLE h = pResult->pPlugin->Open(OPEN_ANALYSE, FarGuid, 0);
+ AnalyseInfo Info={sizeof(Info)};
+ Info.FileName = Name? Name->CPtr() : nullptr;
+ Info.Buffer = Data;
+ Info.BufferSize = DataSize;
+ Info.OpMode = OpMode|(Type==OFP_ALTERNATIVE?OPM_PGDN:0);
+
+ HANDLE h = pResult->pPlugin->Open(OPEN_ANALYSE, FarGuid, (INT_PTR)&Info);
if (h == (HANDLE)-2)
{
@@ -854,6 +855,11 @@
}
}
+ if(Data)
+ {
+ delete[] Data;
+ }
+
for (size_t i = 0; i < items.getCount(); i++)
{
PluginHandle *handle = items.getItem(i);
|
|
|
2395 |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-01-16 20:12 | Maximus | New Issue | |
| 2012-01-16 20:12 | Maximus | File Added: Analyse.diff | |
| 2012-01-17 19:43 | alexy | Note Added: 0008446 | |
| 2012-01-17 19:43 | alexy | Assigned To | => zg |
| 2012-01-17 19:43 | alexy | Status | new => feedback |
| 2012-01-18 19:29 | alexy | Build | => 2395 |
| 2012-01-18 19:29 | alexy | Status | feedback => closed |
| 2012-01-18 19:29 | alexy | Resolution | open => fixed |
| 2012-01-18 19:29 | alexy | Fixed in Version | => 3.0 |
| 2013-02-03 00:33 | alexy | Severity | minor => feature |