From b4a694bb10231d5017ce1a9cb39c21fbece30987 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 12 Aug 2026 00:10:26 +0200 Subject: [PATCH] Align Windows rotational device detection fallback with Unix by assuming rotational when unknown --- cmdline/mingwapp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmdline/mingwapp.c b/cmdline/mingwapp.c index ced3f63a..06e2cca8 100644 --- a/cmdline/mingwapp.c +++ b/cmdline/mingwapp.c @@ -1230,7 +1230,7 @@ static int devpower(uint64_t device, const char* name, const char* wfile) DWORD error = GetLastError(); windows_errno(error); log_tag("device:%s:%s:error:%lu\n", file, name, error); - return 0; /* assume not rotational */ + return 1; /* assume rotational if unknown */ } /* get the interface */ @@ -1248,11 +1248,11 @@ static int devpower(uint64_t device, const char* name, const char* wfile) DWORD error = GetLastError(); windows_errno(error); log_tag("device:%s:%s:error:%lu\n", file, name, error); - return 0; /* assume not rotational */ + return 1; /* assume rotational if unknown */ } if (rotational == SMART_UNASSIGNED) - return 0; /* assume not rotational */ + return 1; /* assume rotational if unknown */ return rotational != 0; }