View Issue Details

IDProjectCategoryView StatusLast Update
0001991WishesPlugins API.Panelpublic2013-02-03 00:33
ReporterMaximus Assigned Tozg  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.0 
Fixed in Version3.0 
Summary0001991: Параметры AnalyzeW
DescriptionПередавать вместе с OPEN_ANALYSE информацию об открываемом файле
TagsNo tags attached.
Build2395

Activities

Maximus

2012-01-16 20:12

reporter  

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);
Analyse.diff (1,137 bytes)   

alexy

2012-01-17 19:43

administrator   bugnote:0008446

2395

Issue History

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