- Timestamp:
- Feb 29, 2012, 6:13:11 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Serial_Server/library/Image.cpp
r277 r284 192 192 193 193 #define ATA_strModel 27 194 #define ATA_strModel_Length 40 194 #define ATA_strModel_Length 40 // Maximum allowable length of the string according to the ATA spec 195 #define XTIDEBIOS_strModel_Length 30 // Maximum length copied out of the ATA information by the BIOS 195 196 196 197 #define ATA_wCaps 49 … … 240 241 { 241 242 char formatBuff[ 128 ]; 243 char speedBuff[ 128 ]; 242 244 243 245 memset( &buff[0], 0, 514 ); … … 256 258 257 259 if( comPort ) 258 sprintf( formatBuff, "%.15s (COM%c/%s) ", shortFileName, comPort, baudRate->display );260 sprintf( speedBuff, " (COM%c/%s)", comPort, baudRate->display ); 259 261 else 260 sprintf( formatBuff, "%.25s (%s baud) ", shortFileName, baudRate->display ); 262 sprintf( speedBuff, " (%s baud)", shortFileName, baudRate->display ); 263 264 sprintf( formatBuff, "%.*s%s ", XTIDEBIOS_strModel_Length - strlen(speedBuff), shortFileName, speedBuff ); 261 265 } 262 266 else 263 sprintf( formatBuff, "%. 30s ", shortFileName );267 sprintf( formatBuff, "%.*s ", XTIDEBIOS_strModel_Length, shortFileName ); 264 268 strncpy( (char *) &buff[ATA_strModel], formatBuff, ATA_strModel_Length ); 265 269 flipEndian( &buff[ATA_strModel], ATA_strModel_Length ); … … 302 306 buff[ ATA_wGenCfg ] = ATA_wGenCfg_FIXED; 303 307 } 308 -
trunk/Serial_Server/win32/Win32Serial.h
r258 r284 46 46 log( -1, "Could not ConnectNamedPipe" ); 47 47 48 if( baudRate->divisor > 3)48 if( baudRate->divisor > 0x80 ) 49 49 log( -1, "Cannot simulate baud rates with hardware multipliers" ); 50 50 -
trunk/XTIDE_Universal_BIOS/Inc/BootMenu.inc
r254 r284 19 19 ; Boot Menu Information Table. These are generated for all XTIDE Universal 20 20 ; BIOS drives. Available only until boot is successfull. 21 MAX_HARD_DISK_NAME_LENGTH EQU 26; Bytes reserved for drive name21 MAX_HARD_DISK_NAME_LENGTH EQU 30 ; Bytes reserved for drive name 22 22 23 23 struc BOOTMENUINFO 24 24 .szDrvName resb MAX_HARD_DISK_NAME_LENGTH 25 25 resb 2 ; Zero word (ensures string terminates) 26 resb 8; padding to make BOOTMENUINFO size an even multiple of DPT size26 resb 4 ; padding to make BOOTMENUINFO size an even multiple of DPT size 27 27 endstruc 28 28 … … 30 30 31 31 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 32 33 %if MAX_HARD_DISK_NAME_LENGTH % 2 <> 0 34 %error "MAX_HARD_DISK_NAME_LENGTH needs to be a multiple of 2, memory is moved with word operations." 35 %endif 32 36 33 37 %if BOOTMENUINFO_size % LARGEST_DPT_SIZE <> 0
Note:
See TracChangeset
for help on using the changeset viewer.