[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
BytsPerSec = (BPB_BytsPerSec[1]<<8)|BPB_BytsPerSec[0] ??
может
BytsPerSec = *((unsigned int*)&BPB_BytsPerSec[0]);
И таким макаром...
Заменить описание структуры на определения смещения полей в массиве
#define BPB_BytsPerSec_OFFS 11
#define BPB_SecPerClus_OFFS 13
...
BytsPerSec = *((unsigned int*)&sbuf[BPB_BytsPerSec_OFFS]);
SecPerClus = *((unsigned char*)&sbuf[BPB_SecPerClus_OFFS]);
...
E-mail: info@telesys.ru