Commit 472c2d9b authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

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

parent b9a326b6
...@@ -180,7 +180,7 @@ extern "C" UINT __stdcall CheckDirectoryEmpty(MSIHANDLE hInstall, ...@@ -180,7 +180,7 @@ extern "C" UINT __stdcall CheckDirectoryEmpty(MSIHANDLE hInstall,
empty= true; empty= true;
for(;;) for(;;)
{ {
if (wcscmp(data.cFileName, L".") || wcscmp(data.cFileName, L"..")) if (wcscmp(data.cFileName, L".") && wcscmp(data.cFileName, L".."))
{ {
empty= false; empty= false;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment