Skip to content

Commit 58e7f4a

Browse files
committed
Change file mode to binary
1 parent 87e3f4d commit 58e7f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void MainWindow::onStartClicked() {
4141
ImageWriter writer;
4242
writer.setOutputFile(out);
4343

44-
std::ifstream file(in);
44+
std::ifstream file(in, std::ifstream::binary);
4545
writer.start();
4646
char data[512];
4747
do {

0 commit comments

Comments
 (0)