diff options
Diffstat (limited to 'src/updater.cpp')
-rw-r--r-- | src/updater.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/updater.cpp b/src/updater.cpp index 2d87124..773f7d3 100644 --- a/src/updater.cpp +++ b/src/updater.cpp | |||
@@ -180,7 +180,7 @@ void Updater::InstallUpdate(std::string url, std::string checksum, | |||
180 | if (!package_path.IsOk()) { | 180 | if (!package_path.IsOk()) { |
181 | download_issue = true; | 181 | download_issue = true; |
182 | } else { | 182 | } else { |
183 | wxFileOutputStream writeOut(package_path.GetPath()); | 183 | wxFileOutputStream writeOut(package_path.GetFullPath()); |
184 | wxString fileData = packageRequest.GetResponse().AsString(); | 184 | wxString fileData = packageRequest.GetResponse().AsString(); |
185 | writeOut.WriteAll(fileData.c_str(), fileData.length()); | 185 | writeOut.WriteAll(fileData.c_str(), fileData.length()); |
186 | 186 | ||
@@ -248,7 +248,7 @@ void Updater::InstallUpdate(std::string url, std::string checksum, | |||
248 | } | 248 | } |
249 | } | 249 | } |
250 | 250 | ||
251 | wxFileInputStream fileInputStream(package_path.GetPath()); | 251 | wxFileInputStream fileInputStream(package_path.GetFullPath()); |
252 | wxZipInputStream zipStream(fileInputStream); | 252 | wxZipInputStream zipStream(fileInputStream); |
253 | std::unique_ptr<wxZipEntry> zipEntry; | 253 | std::unique_ptr<wxZipEntry> zipEntry; |
254 | while ((zipEntry = std::unique_ptr<wxZipEntry>(zipStream.GetNextEntry())) != | 254 | while ((zipEntry = std::unique_ptr<wxZipEntry>(zipStream.GetNextEntry())) != |