View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000822 | Far Manager | Plugins API.Old API Wrapper | public | 2009-04-08 22:24 | 2009-04-08 22:30 |
Reporter | sn2234 | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Fixed in Version | 2.0 | ||||
Summary | 0000822: Crashes with old plugins | ||||
Description | In pluginold.hpp all structures have default members alignment, while some ASCII plugins (7-Zip for example) expect them aligned on 1 byte. This may lead to crashes in many cases. | ||||
Additional Information | Attached patch solve this problem for me. | ||||
Tags | No tags attached. | ||||
Build | 866 | ||||
2009-04-08 22:24
|
sug.patch (396 bytes)
Index: pluginold.hpp =================================================================== --- pluginold.hpp (revision 2821) +++ pluginold.hpp (working copy) @@ -1,6 +1,8 @@ #ifndef __PLUGINOLD_HPP__ #define __PLUGINOLD_HPP__ +#pragma pack(push, 1) + namespace oldfar { enum FARMESSAGEFLAGS{ @@ -1818,4 +1820,5 @@ } +#pragma pack(pop) #endif /* __PLUGINOLD_HPP__ */ |