Author: akhaldi
Date: Wed Aug 1 20:27:41 2012
New Revision: 57017
URL:
http://svn.reactos.org/svn/reactos?rev=57017&view=rev
Log:
[ATACTL]
* Sync with the latest UniATA version.
Modified:
trunk/reactos/base/applications/atactl/atactl.cpp
Modified: trunk/reactos/base/applications/atactl/atactl.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/atactl/a…
==============================================================================
--- trunk/reactos/base/applications/atactl/atactl.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/atactl/atactl.cpp [iso-8859-1] Wed Aug 1 20:27:41
2012
@@ -784,6 +784,9 @@
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);