Fixed ioctl() error return for ntfsclone on Windows
The ioctl() function is not implemented in the Windows variant. By forcing a negative apparent return, an alternative is triggered to get the partition size which is normally obtained from an ioctl().edge.strict_endians
parent
fd93d8e840
commit
f3c4c6c604
|
@ -115,7 +115,7 @@ int setmode(int, int); /* from msvcrt.dll */
|
|||
#define srandom(seed) srand(seed)
|
||||
#define random() rand()
|
||||
#define fsync(fd) (0)
|
||||
#define ioctl(fd,code,buf) (0)
|
||||
#define ioctl(fd,code,buf) (-1)
|
||||
#define ftruncate(fd, size) ntfs_device_win32_ftruncate(dev_out, size)
|
||||
#define BINWMODE "wb"
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue