diff options
Diffstat (limited to 'plugins/PluginUpdater/src/unzipfile.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/unzipfile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/PluginUpdater/src/unzipfile.cpp b/plugins/PluginUpdater/src/unzipfile.cpp index fb3bb2ae5a..2dbe754af6 100644 --- a/plugins/PluginUpdater/src/unzipfile.cpp +++ b/plugins/PluginUpdater/src/unzipfile.cpp @@ -66,10 +66,10 @@ int extractCurrentFile(unzFile uf, wchar_t *pwszDestPath, wchar_t *pwszBackPath, }
PrepareFileName(wszDestFile, _countof(wszDestFile), pwszDestPath, pwszNewName);
- SafeCreateFilePath(wszDestFile);
+ PU::SafeCreateFilePath(wszDestFile);
wchar_t *pwszFile2unzip;
- if (g_hPipe == nullptr) // direct mode
+ if (PU::IsDirect())
pwszFile2unzip = wszDestFile;
else {
TFileName wszTempPath;
@@ -103,8 +103,8 @@ int extractCurrentFile(unzFile uf, wchar_t *pwszDestPath, wchar_t *pwszBackPath, CloseHandle(hFile);
unzCloseCurrentFile(uf); /* don't lose the error */
- if (g_hPipe)
- SafeMoveFile(pwszFile2unzip, wszDestFile);
+ if (!PU::IsDirect())
+ PU::SafeMoveFile(pwszFile2unzip, wszDestFile);
}
return err;
}
|