Skip to content

Commit

Permalink
Close HDD access from PFSShell system when opening partition mount di…
Browse files Browse the repository at this point in the history
…alog
  • Loading branch information
israpps authored Dec 3, 2023
1 parent 10e7511 commit 8970277
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HDL-Batch-installer-SRC/HDL_Batch_installerMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,9 @@ bool Dokan_is_installed(void)

void HDL_Batch_installerFrame::OnButton4Click(wxCommandEvent& event)
{
#if PFSSHELL_ALLOWED
PFSSHELL.CloseDevice(); //PFSShell with device attached will make HDL Dump write features crash
#endif
if (!wxFileExists(HDLBINST_APPDATA+"\\dokan_and_fuse.ini"))
{
wxMessageBox(_("This is the first time you use PFSFUSE\n\nPLEASE, Keep in mind that, if you mount a partition you must unmount it when you finish using this program, otherwise, you could corrupt the mounted partition or the whole HDD"),
Expand Down

0 comments on commit 8970277

Please sign in to comment.