| 712 | | dirEntry->startClusterHigh=FatGetPriv(dir)->startCluster >> 16; |
| 713 | | dirEntry->startClusterLow=FatGetPriv(dir)->startCluster & 0xFFFF; |
| | 712 | |
| | 713 | if (dir->id != FAT_ROOT_ID) |
| | 714 | { |
| | 715 | dirEntry->startClusterHigh=FatGetPriv(dir)->startCluster >> 16; |
| | 716 | dirEntry->startClusterLow=FatGetPriv(dir)->startCluster & 0xFFFF; |
| | 717 | }else{ |
| | 718 | /* If the parent is the root directory, the start cluster should |
| | 719 | * always point to 0, even on FAT32, where the root directory has its |
| | 720 | * own start cluster. |
| | 721 | */ |
| | 722 | dirEntry->startClusterHigh = 0; |
| | 723 | dirEntry->startClusterLow = 0; |
| | 724 | } |
| | 725 | |