diff options
-rw-r--r-- | plugins/PluginUpdater/src/unzipfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/unzipfile.cpp b/plugins/PluginUpdater/src/unzipfile.cpp index ece6a2866d..c56a7a1ab3 100644 --- a/plugins/PluginUpdater/src/unzipfile.cpp +++ b/plugins/PluginUpdater/src/unzipfile.cpp @@ -58,7 +58,7 @@ bool extractCurrentFile(unzFile uf, TCHAR *ptszDestPath, TCHAR *ptszBackPath) for (char *p = strchr(filename, '/'); p; p = strchr(p+1, '/'))
*p = '\\';
- if (!db_get_b(NULL, MODNAME "Files", StrToLower(ptrA(filename)), true))
+ if (!db_get_b(NULL, MODNAME "Files", StrToLower(ptrA(_strdup(filename))), true))
return true;
TCHAR tszDestFile[MAX_PATH], tszBackFile[MAX_PATH];
|