diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2011-03-21 21:33:57 -0400 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2011-03-21 21:33:57 -0400 |
commit | 699941e25a1fcf0beec124203747c8ed20842989 (patch) | |
tree | eb2629231de8c6a973e3ef449fab80082b87a9ae /diskio-windows.cc | |
parent | 815fb65195106b8afe1b8dfec5dae605dbd7ccbe (diff) | |
download | sgdisk-699941e25a1fcf0beec124203747c8ed20842989.tar.gz |
0.7.1 release version
Diffstat (limited to 'diskio-windows.cc')
-rw-r--r-- | diskio-windows.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/diskio-windows.cc b/diskio-windows.cc index b79884c..938d7ec 100644 --- a/diskio-windows.cc +++ b/diskio-windows.cc @@ -133,11 +133,12 @@ int DiskIO::GetBlockSize(void) { } // if if (isOpen) { - if (DeviceIoControl(fd, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, NULL, 0, &geom, sizeof(geom), &retBytes, NULL)) { + if (DeviceIoControl(fd, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, NULL, 0, + &geom, sizeof(geom), &retBytes, NULL)) { blockSize = geom.Geometry.BytesPerSector; - } else { // was probably an ordinary file; set default value.... + } else { // was probably an ordinary file; set default value.... blockSize = SECTOR_SIZE; - } // if/else + } // if/else } // if (isOpen) return (blockSize); |