aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-07-30 15:11:00 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-07-30 15:11:00 -0700
commit6d564628b7280ecff3f595e982721d3890d4a615 (patch)
treec29fe36f5bae3b09c568868b932e79b2d3695666
parenta7ef6637353a6ccffae850c92a170813a704ec41 (diff)
downloadPrismLauncher-6d564628b7280ecff3f595e982721d3890d4a615.tar.gz
PrismLauncher-6d564628b7280ecff3f595e982721d3890d4a615.tar.bz2
PrismLauncher-6d564628b7280ecff3f595e982721d3890d4a615.zip
fix(FileLink): drop FreeConsole
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
-rw-r--r--launcher/filelink/FileLink.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/launcher/filelink/FileLink.cpp b/launcher/filelink/FileLink.cpp
index e549fbe6..fb0f5fcc 100644
--- a/launcher/filelink/FileLink.cpp
+++ b/launcher/filelink/FileLink.cpp
@@ -170,7 +170,7 @@ void FileLinkApp::runLink()
FS::LinkResult result = { src_path, dst_path, QString::fromStdString(os_err.message()), os_err.value() };
m_path_results.append(result);
} else {
- FS::LinkResult result = { src_path, dst_path };
+ FS::LinkResult result = { src_path, dst_path, "", 0};
m_path_results.append(result);
}
}
@@ -230,7 +230,7 @@ void FileLinkApp::readPathPairs()
in >> numLinks;
qDebug() << "numLinks" << numLinks;
- for (int i = 0; i < numLinks; i++) {
+ for (unsigned int i = 0; i < numLinks; i++) {
FS::LinkPair pair;
in >> pair.src;
in >> pair.dst;
@@ -253,7 +253,6 @@ FileLinkApp::~FileLinkApp()
fclose(stdout);
fclose(stdin);
fclose(stderr);
- FreeConsole();
}
#endif
}