aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/Common/ArchiveOpenCallback.cpp')
-rw-r--r--CPP/7zip/UI/Common/ArchiveOpenCallback.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp b/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp
index a9fda7b..fd8f9f8 100644
--- a/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp
+++ b/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp
@@ -102,7 +102,14 @@ STDMETHODIMP COpenCallbackImp::GetStream(const wchar_t *name, IInStream **inStre
// if (!allowAbsVolPaths)
if (!IsSafePath(name2))
return S_FALSE;
-
+
+ // #ifdef _WIN32
+ // we don't want to support wildcards in names here here
+ if (name2.Find(L'?') >= 0 ||
+ name2.Find(L'*') >= 0)
+ return S_FALSE;
+ // #endif
+
#endif