いきなりバグってーら
    if (sec_vfdd->flMF && sec_vfdd->flHD) {

    if (sec_vfdd->flMF == 0x01 && sec_vfdd->flHD == 0x01) {
です。