From 6f0ac4eace9d175e29083959dab973765edd6abf Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sun, 3 Apr 2022 01:24:09 +0600 Subject: [PATCH] qt: Fix creation of differencing VHDs --- src/qt/qt_harddiskdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/qt_harddiskdialog.cpp b/src/qt/qt_harddiskdialog.cpp index b82f6927b..b7a44d952 100644 --- a/src/qt/qt_harddiskdialog.cpp +++ b/src/qt/qt_harddiskdialog.cpp @@ -252,7 +252,7 @@ static MVHDGeom create_drive_vhd_dynamic(const QString& fileName, uint16_t cyl, static MVHDGeom create_drive_vhd_diff(const QString& fileName, const QString& parentFileName, int blocksize) { int vhd_error = 0; QByteArray filenameBytes = fileName.toUtf8(); - QByteArray parentFilenameBytes = fileName.toUtf8(); + QByteArray parentFilenameBytes = parentFileName.toUtf8(); MVHDCreationOptions options; options.block_size_in_sectors = blocksize; options.path = filenameBytes.data();