]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix Add harddrive partition selection.
authorToni Wilen <twilen@winuae.net>
Fri, 21 Mar 2025 18:24:49 +0000 (20:24 +0200)
committerToni Wilen <twilen@winuae.net>
Fri, 21 Mar 2025 18:24:49 +0000 (20:24 +0200)
od-win32/hardfile_win32.cpp

index 304f203e1268c969116753ef07acdc8c7781e8ae..3074de68712d0396ff5eb0492279c1ecbef4759f 100644 (file)
@@ -1883,9 +1883,7 @@ static bool getdeviceinfo(HANDLE hDevice, struct uae_driveinfo *udi)
                                continue;
                        if (pi->Mbr.RecognizedPartition == 0)
                                continue;
-                       if (pi->Mbr.PartitionType != 0x76 && pi->Mbr.PartitionType != 0x30)
-                               continue;
-                       if (i == amipart) {
+                       if (i + 1 == amipart) {
                                udi->offset = pi->StartingOffset.QuadPart;
                                udi->size = pi->PartitionLength.QuadPart;
                                return false;