From e1398e05d462fc95dd4f3f4c8fc33fde97e56701 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Wed, 1 Aug 2012 20:27:41 +0000 Subject: [PATCH] [ATACTL] * Sync with the latest UniATA version. svn path=/trunk/; revision=57017 --- reactos/base/applications/atactl/atactl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/base/applications/atactl/atactl.cpp b/reactos/base/applications/atactl/atactl.cpp index 9a0968babbc..113945e07b2 100644 --- a/reactos/base/applications/atactl/atactl.cpp +++ b/reactos/base/applications/atactl/atactl.cpp @@ -784,6 +784,9 @@ ata_check_unit( chs[0] = ident->NumberOfCylinders; chs[1] = ident->NumberOfHeads; chs[2] = ident->SectorsPerTrack; + if(!max_lba) { + max_lba = (ULONG)(chs[0])*(ULONG)(chs[1])*(ULONG)(chs[2]); + } } if(io_mode != -1) { printf(" %.12s\n", mode_str); -- 2.17.1