From 2265dbcaad95a980ecc6d5cf6425478cc0aa50bb Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 21 Mar 2025 20:24:49 +0200 Subject: [PATCH] Fix Add harddrive partition selection. --- od-win32/hardfile_win32.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/od-win32/hardfile_win32.cpp b/od-win32/hardfile_win32.cpp index 304f203e..3074de68 100644 --- a/od-win32/hardfile_win32.cpp +++ b/od-win32/hardfile_win32.cpp @@ -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; -- 2.47.3