Changeset 18557 in vbox
- Timestamp:
- Mar 30, 2009 5:42:47 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 45432
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r18373 r18557 410 410 if ( rc == VERR_PDM_GEOMETRY_NOT_SET 411 411 || LCHSGeometry.cCylinders == 0 412 || LCHSGeometry.cCylinders > 1024413 412 || LCHSGeometry.cHeads == 0 414 413 || LCHSGeometry.cHeads > 255 -
trunk/src/VBox/Devices/Storage/VBoxHDD.cpp
r18150 r18557 1124 1124 { 1125 1125 /* Make sure the LCHS geometry is properly clipped. */ 1126 pDisk->LCHSGeometry.cCylinders = RT_MIN(pDisk->LCHSGeometry.cCylinders, 1024);1127 1126 pDisk->LCHSGeometry.cHeads = RT_MIN(pDisk->LCHSGeometry.cHeads, 255); 1128 1127 pDisk->LCHSGeometry.cSectors = RT_MIN(pDisk->LCHSGeometry.cSectors, 63); … … 1183 1182 * @param pszComment Pointer to image comment. NULL is ok. 1184 1183 * @param pPCHSGeometry Pointer to physical disk geometry <= (16383,16,63). Not NULL. 1185 * @param pLCHSGeometry Pointer to logical disk geometry <= ( 1024,255,63). Not NULL.1184 * @param pLCHSGeometry Pointer to logical disk geometry <= (x,255,63). Not NULL. 1186 1185 * @param pUuid New UUID of the image. If NULL, a new UUID is created. 1187 1186 * @param uOpenFlags Image file open mode, see VD_OPEN_FLAGS_* constants. … … 1246 1245 /* The LCHS geometry fields may be 0 to leave it to later autodetection. */ 1247 1246 AssertMsgBreakStmt( VALID_PTR(pLCHSGeometry) 1248 && pLCHSGeometry->cCylinders <= 10241249 1247 && pLCHSGeometry->cHeads <= 255 1250 1248 && pLCHSGeometry->cSectors <= 63, … … 1362 1360 { 1363 1361 /* Make sure the CHS geometry is properly clipped. */ 1364 pDisk->LCHSGeometry.cCylinders = RT_MIN(pDisk->LCHSGeometry.cCylinders, 1024);1365 1362 pDisk->LCHSGeometry.cHeads = RT_MIN(pDisk->LCHSGeometry.cHeads, 255); 1366 1363 pDisk->LCHSGeometry.cSectors = RT_MIN(pDisk->LCHSGeometry.cSectors, 63); … … 2197 2194 { 2198 2195 /* Make sure the LCHS geometry is properly clipped. */ 2199 pDisk->LCHSGeometry.cCylinders = RT_MIN(pDisk->LCHSGeometry.cCylinders, 1024);2200 2196 pDisk->LCHSGeometry.cHeads = RT_MIN(pDisk->LCHSGeometry.cHeads, 255); 2201 2197 pDisk->LCHSGeometry.cSectors = RT_MIN(pDisk->LCHSGeometry.cSectors, 63); … … 2592 2588 { 2593 2589 /* Make sure the CHS geometry is properly clipped. */ 2594 pDisk->PCHSGeometry.cCylinders = RT_MIN(pDisk->PCHSGeometry.cCylinders, 1024);2595 2590 pDisk->PCHSGeometry.cHeads = RT_MIN(pDisk->PCHSGeometry.cHeads, 255); 2596 2591 pDisk->PCHSGeometry.cSectors = RT_MIN(pDisk->PCHSGeometry.cSectors, 63); … … 2701 2696 /* Check arguments. */ 2702 2697 AssertMsgBreakStmt( VALID_PTR(pLCHSGeometry) 2703 && pLCHSGeometry->cCylinders <= 10242704 2698 && pLCHSGeometry->cHeads <= 255 2705 2699 && pLCHSGeometry->cSectors <= 63, … … 2738 2732 { 2739 2733 /* Make sure the CHS geometry is properly clipped. */ 2740 pDisk->LCHSGeometry.cCylinders = RT_MIN(pDisk->LCHSGeometry.cCylinders, 1024);2741 2734 pDisk->LCHSGeometry.cHeads = RT_MIN(pDisk->LCHSGeometry.cHeads, 255); 2742 2735 pDisk->LCHSGeometry.cSectors = RT_MIN(pDisk->LCHSGeometry.cSectors, 63);
Note:
See TracChangeset
for help on using the changeset viewer.