]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Do full real harddrive partition lock even if partition-only lock succeeded.
authorToni Wilen <twilen@winuae.net>
Sun, 1 Jun 2025 08:57:51 +0000 (11:57 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 1 Jun 2025 08:57:51 +0000 (11:57 +0300)
od-win32/hardfile_win32.cpp

index af691582d215cfb5eb94b68c92688dc3dbe5af3e..707f41c5f3ca812d238e77edbfdd92b960c76811 100644 (file)
@@ -1920,7 +1920,6 @@ static void lock_drive(struct hardfiledata *hfd, const TCHAR *name, HANDLE drvha
                if (DeviceIoControl(drvhandle, FSCTL_DISMOUNT_VOLUME, NULL, 0, NULL, 0, &written, NULL)) {
                        write_log(_T("'%s' locked and dismounted successfully.\n"), name);
                        hfd->handle->dismounted = true;
-                       return;
                }
        }