https://git.reactos.org/?p=reactos.git;a=commitdiff;h=83a9f7169086d25a9d32a…
commit 83a9f7169086d25a9d32a2e227bb421e5c417bdf
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Tue May 19 20:35:52 2020 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Tue May 19 20:35:52 2020 +0200
[SHELL32] Allow creation of an empty CFileSysEnum
CORE-16908
---
dll/win32/shell32/folders/CFSFolder.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/win32/shell32/folders/CFSFolder.cpp
b/dll/win32/shell32/folders/CFSFolder.cpp
index a97ad5d4980..918ba8f5ff2 100644
--- a/dll/win32/shell32/folders/CFSFolder.cpp
+++ b/dll/win32/shell32/folders/CFSFolder.cpp
@@ -460,8 +460,8 @@ public:
if (!sPathTarget || !sPathTarget[0])
{
- FAILED_UNEXPECTEDLY(E_INVALIDARG);
- return E_INVALIDARG;
+ WARN("No path for CFileSysEnum, empty result!\n");
+ return S_FALSE;
}
WCHAR szFindPattern[MAX_PATH];