dokan-dev / dokany

User mode file system library for windows with FUSE Wrapper
http://dokan-dev.github.io
5.23k stars 666 forks source link

[Mirror] .ppt file crash on dokan_mirror #1163

Open rainbowmagic opened 1 year ago

rainbowmagic commented 1 year ago

Feature request can skip this form. Bug report must complete it. Check List must be 100% match or it will be automatically closed without further discussion. Please remove this line.

Environment

Check List

Description

When opening and saving a .ppt file in PowerPoint 2016, there is an issue where the file gets corrupted.

excute sample on command by "mirror.exe /r C:\Users /l m"

After opening the file and performing 'Save' or 'Save As' operation on target folder, the file is closed. And when reopening the file, it displays an error message and attempts to recover, but the recovery is unsuccessful.

This phenomenon is found only in .ppt files and not in .pptx files.

Logs

no log

Liryna commented 1 year ago

Hi @rainbowmagic ,

I wasn't able to reproduce the issue. Would you be able to attach a debugger and locate from where it crashes ?

rainbowmagic commented 1 year ago

Hi @Liryna, thanks for your question.

I encountered this issue when I opened a document with a lower version PPT extension in a higher version of PowerPoint. example, I opened a PowerPoint 2003 document (PPT file) in PowerPoint 2016 and saved it again.

The PowerPoint document includes images or videos, and the issue is anticipated to arise at this point. Furthermore, when it comes to this issue, it appears that handling ReadFile in Dokan is insufficient.

I attempted to resolve the issue using FileFlush, but I was not able to resolve it completely.

If more information is needed to reproduce the problem, please ask further questions.

Hi @rainbowmagic ,

I wasn't able to reproduce the issue. Would you be able to attach a debugger and locate from where it crashes ?