Patch for Bug: #1417 opening pictures from 7-zip
A free file archiver for extremely high compression
Brought to you by:
ipavlov
Details: ShellExecuteEx Starts the Application (Ex: Windows Photo Viewer) but fail to get hProcess HANDLE, hProcess = 0;
Problem: Temp Files deleted whenever hProcess = 0, So when application started it will not find the file
Solution: postpone Temp Dir cleanup till User Exit
Behavior After Patch:
- if hProcess = 0xValue, wait for application to be closed then remove temp Dir
- if hProcess = 0 , postpone Temp files removal until user Exit 7zFM
Files Modded:
PanelItemOpen.cpp
Functions Modded :
void CPanel::OpenItemInArchive(...)
static HRESULT StartApplication(...)
Classes Defined
class TempProcessList
Variables Defined
TempProcessList tempProcessList
That problem is pretty complicated.
And now I don't work with that code.
I'll return to it later.
Please Can you explain more ?
how the solution of this problem should be ?
Thank you :)