1.1 --- a/GateKeeper.cpp Fri Jul 03 07:46:32 2020 +0200
1.2 +++ b/GateKeeper.cpp Fri Jul 03 07:58:55 2020 +0200
1.3 @@ -1,10 +1,13 @@
1.4 -#include "stdafx.h"
1.5 +#include "stdafx.h"
1.6
1.7 #include "GateKeeper.h"
1.8 #include "pEpCOMServerAdapter.h"
1.9 +#include "CMainWindow.h"
1.10
1.11 using namespace std;
1.12
1.13 +extern CMainWindow mainWindow;
1.14 +
1.15 // from https://msdn.microsoft.com/en-us/library/windows/desktop/dd388945(v=vs.85).aspx
1.16
1.17 struct PUBLIC_KEY_VALUES {
1.18 @@ -519,6 +522,9 @@
1.19 DWORD reading;
1.20 InternetReadFile(hUrl, iv, sizeof(iv), &reading);
1.21
1.22 + if (reading)
1.23 + mainWindow.ShowNotificationInfo(_T("Downloading update"), _T("An update for p≡p arrived and is being downloaded."));
1.24 +
1.25 if (reading) do {
1.26 static char buffer[1024 * 1024];
1.27 BOOL bResult = InternetReadFile(hUrl, buffer, 1024 * 1024, &reading);