mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-02 07:39:54 -04:00
[misc] update license URLs and align ms-sys's write_data buffer to 4K
* Also remove some obsolete TODOs
This commit is contained in:
parent
e3970ba707
commit
4c816a519e
9 changed files with 28 additions and 35 deletions
|
@ -181,8 +181,7 @@ int write_data(FILE *fp, uint64_t Position,
|
|||
{
|
||||
int r = 0;
|
||||
/* Windows' WriteFile() may require a buffer that is aligned to the sector size */
|
||||
/* TODO: We may need to increase the alignment if we get report of issues on 4K */
|
||||
unsigned char *aucBuf = _mm_malloc(MAX_DATA_LEN, 512);
|
||||
unsigned char *aucBuf = _mm_malloc(MAX_DATA_LEN, 4096);
|
||||
FAKE_FD* fd = (FAKE_FD*)fp;
|
||||
HANDLE hDrive = (HANDLE)fd->_handle;
|
||||
uint64_t StartSector, EndSector, NumSectors;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue