diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-21 15:18:22 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-21 15:18:22 +0000 |
commit | 1b6462b532772d0d0537a760f34f82daceccb55d (patch) | |
tree | e412606ac75116000c7703c1e6d0889f4e7a8542 /plugins/PluginUpdater/src/unzipfile.cpp | |
parent | bc97d8192aa854aa675ae9cb68c79fca2c7893bc (diff) |
PluginUpdater:
- fix for displaying MessageBox over modeless dialog;
- auto-handle for a pipe;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@7815 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/unzipfile.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/unzipfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/src/unzipfile.cpp b/plugins/PluginUpdater/src/unzipfile.cpp index 5ae9989053..b29e7e1193 100644 --- a/plugins/PluginUpdater/src/unzipfile.cpp +++ b/plugins/PluginUpdater/src/unzipfile.cpp @@ -65,7 +65,7 @@ bool extractCurrentFile(unzFile uf, TCHAR *ptszDestPath, TCHAR *ptszBackPath, bo if (ptszNewName == NULL)
ptszNewName = mir_a2t(filename);
- if ( !(file_info.external_fa & FILE_ATTRIBUTE_DIRECTORY)) {
+ if (!(file_info.external_fa & FILE_ATTRIBUTE_DIRECTORY)) {
err = unzOpenCurrentFile(uf);
if (err != UNZ_OK)
return false;
@@ -131,7 +131,7 @@ bool unzip(const TCHAR *ptszZipFile, TCHAR *ptszDestPath, TCHAR *ptszBackPath,bo unzFile uf = unzOpen2_64(ptszZipFile, &ffunc);
if (uf) {
do {
- if ( !extractCurrentFile(uf, ptszDestPath, ptszBackPath,ch))
+ if (!extractCurrentFile(uf, ptszDestPath, ptszBackPath,ch))
bResult = false;
}
while (unzGoToNextFile(uf) == UNZ_OK);
|