[0.4.14][SHELL32] Allow creation of an empty CFileSysEnum

part of the fix for CORE-16908
This commit fixes a unittest crash in shell32:CFSFolder
introduced by the previous commits

cherry picked from commit 0.4.15-dev-279-g
83a9f71690
This commit is contained in:
Mark Jansen 2020-05-19 20:35:52 +02:00 committed by Joachim Henze
parent c8448b2d39
commit efc990aa3d

View file

@ -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];