#244 Patch for Bug: #1417 opening pictures from 7-zip

open-fixed
nobody
None
7
2014-08-09
2014-07-25
ExtremeGTX
No

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

2 Attachments

Discussion

  • Igor Pavlov
    Igor Pavlov
    2014-08-04

    That problem is pretty complicated.
    And now I don't work with that code.
    I'll return to it later.

     
  • ExtremeGTX
    ExtremeGTX
    2014-08-09

    Please Can you explain more ?
    how the solution of this problem should be ?

    Thank you :)