summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/unzipfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/PluginUpdater/src/unzipfile.cpp')
-rw-r--r--plugins/PluginUpdater/src/unzipfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/src/unzipfile.cpp b/plugins/PluginUpdater/src/unzipfile.cpp
index e837509ef3..fb3bb2ae5a 100644
--- a/plugins/PluginUpdater/src/unzipfile.cpp
+++ b/plugins/PluginUpdater/src/unzipfile.cpp
@@ -69,7 +69,7 @@ int extractCurrentFile(unzFile uf, wchar_t *pwszDestPath, wchar_t *pwszBackPath,
SafeCreateFilePath(wszDestFile);
wchar_t *pwszFile2unzip;
- if (hPipe == nullptr) // direct mode
+ if (g_hPipe == nullptr) // direct mode
pwszFile2unzip = wszDestFile;
else {
TFileName wszTempPath;
@@ -103,7 +103,7 @@ int extractCurrentFile(unzFile uf, wchar_t *pwszDestPath, wchar_t *pwszBackPath,
CloseHandle(hFile);
unzCloseCurrentFile(uf); /* don't lose the error */
- if (hPipe)
+ if (g_hPipe)
SafeMoveFile(pwszFile2unzip, wszDestFile);
}
return err;