From 472c2d9b2fbb262665bdd08338ea902e8398010d Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 19 Jun 2017 18:23:55 +0000 Subject: MDEV-13106 : Fix check for empty directory in MSI installer --- win/packaging/ca/CustomAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win') diff --git a/win/packaging/ca/CustomAction.cpp b/win/packaging/ca/CustomAction.cpp index 9a174b8529e..9281ce27d34 100644 --- a/win/packaging/ca/CustomAction.cpp +++ b/win/packaging/ca/CustomAction.cpp @@ -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; -- cgit v1.2.1