MDEV-13106 : Fix check for empty directory in MSI installer

This commit is contained in:
Vladislav Vaintroub 2017-06-19 18:23:55 +00:00
parent b9a326b6e1
commit 472c2d9b2f

View file

@ -180,7 +180,7 @@ extern "C" UINT __stdcall CheckDirectoryEmpty(MSIHANDLE hInstall,
empty= true;
for(;;)
{
if (wcscmp(data.cFileName, L".") || wcscmp(data.cFileName, L".."))
if (wcscmp(data.cFileName, L".") && wcscmp(data.cFileName, L".."))
{
empty= false;
break;