Answer the question
In order to leave comments, you need to log in
The FAT32 sector is read incorrectly by the ReadSectors function, why?
Essence: you need to write an application that reads an arbitrary sector of a logical disk.
The application works, but I do not know why - it reads incorrectly.
How do you understand why it's wrong?
If you decrypt the boot sector, then by offset 0x24-0x27 there should be a number of sectors occupied by one copy of FAT.
not relevant
Answer the question
In order to leave comments, you need to log in
To begin with, if you have not done this, find some disk utility and look at these very sectors. Does everything meet your expectations, your knowledge of FAT32. This is so that you do not think that something is wrong, but in fact it should be so.
And then not in a hurry to debug. Miracles don't happen. If a function returns a different result from time to time, then either it is called with different parameters, or an error in the function code, or both. Everything should show the debugger.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question