update while no ther setup is running only
authorVolker Birk <vb@pep-project.org>
Mon, 07 Nov 2016 17:54:56 +0100
changeset 19921d562d2df47
parent 198 f317fa016c94
child 200 e8368b1b8763
update while no ther setup is running only
GateKeeper.cpp
     1.1 --- a/GateKeeper.cpp	Mon Nov 07 17:48:35 2016 +0100
     1.2 +++ b/GateKeeper.cpp	Mon Nov 07 17:54:56 2016 +0100
     1.3 @@ -379,6 +379,14 @@
     1.4  
     1.5      void GateKeeper::update_product(product p, DWORD context)
     1.6      {
     1.7 +		{
     1.8 +			HANDLE hMutex = CreateMutex(NULL, TRUE, _T("PEPINSTALLERMUTEX"));
     1.9 +			if (hMutex)
    1.10 +				CloseHandle(hMutex);
    1.11 +			else
    1.12 +				return;
    1.13 +		}
    1.14 +
    1.15          BCRYPT_KEY_HANDLE dk = delivery_key();
    1.16  #ifdef UNICODE
    1.17          tstring delivery = utility::utf16_string(wrapped_delivery_key(dk));