Skip to content

Commit

Permalink
Change size fix for big files
Browse files Browse the repository at this point in the history
Replaced the changesize function to support huge files
  • Loading branch information
Cloudnaut authored Aug 22, 2018
1 parent 0eb24ac commit f09ea89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ int main(int argc, char *argv[])
_close(fromFileHandle);
_close(toFileHandle);

char *arguments[] = {"HFFDC.exe", "-cmpcpy", fromChecksumFilePath, toChecksumFilePath, "1048576" }; //Copy really hacky the checksum file
main(5, arguments);
const char *arguments[] = {(const char*) "HFFDC.exe", (const char*) "-cmpcpy", fromChecksumFilePath, toChecksumFilePath, (const char*) "1048576" }; //Copy really hacky the checksum file
main(5, (char **) arguments);
}
else PrintHelp();

Expand Down Expand Up @@ -192,13 +192,13 @@ long long GetFileSize(int &fileHandle)

void ExpandFile(int *fileHandle, long long size)
{
_chsize(*fileHandle, (long) size);
_chsize_s(*fileHandle, size);
}


void ShrinkFile(int *fileHandle, long long size)
{
_chsize(*fileHandle, (long) size);
_chsize_s(*fileHandle, size);
}


Expand Down

0 comments on commit f09ea89

Please sign in to comment.