Fixed #581 : could not create HDFs larger than 2GB

This was missed when adding support for 64-bit file operations, relevant link: https://stackoverflow.com/questions/730709/2gb-limit-on-file-size-when-using-fwrite-in-c
This commit is contained in:
Dimitris Panokostas 2020-02-05 21:39:17 +01:00
parent 700ddbffa0
commit 684a9b4bce

View file

@ -406,8 +406,7 @@ bool CreateFilesysHardfile()
auto size = atoi(txtSize->getText().c_str());
if (size < 1)
size = 1;
if (size > 2048)
size = 2048;
const auto bp = tweakbootpri(atoi(txtBootPri->getText().c_str()), 1, 0);
const auto newFile = fopen(txtPath->getText().c_str(), "wbe");