diff --git a/README.md b/README.md index ed9821b..ce1e5f3 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@

A multi-purpose adblocker and skip bypass for the Windows Spotify Desktop Application.

Please support Spotify by purchasing premium

- Current Version: 0.43
- Last updated: 11 January 2020
- Last tested version: 1.1.22.633.g1bab253a + Current Version: 0.44
+ Last updated: 1 February 2020
+ Last tested version: 1.1.24.91.g4ca6d5eb

Important Notice(s)

@@ -18,7 +18,7 @@ * Blocks all banner/video/audio ads within the app * Retains friend, vertical video and radio functionality * Unlocks the skip function for any track -* Built-in AdGuard DNS for ads blocking! +* (Optonal) Built-in AdGuard DNS for ads blocking! :warning: This mod is for the [**Desktop Application**](https://www.spotify.com/download/windows/) of Spotify on Windows, **not the Microsoft Store version**. diff --git a/src/Resource.rc b/src/Resource.rc index 70f7185..ed17330 100644 --- a/src/Resource.rc +++ b/src/Resource.rc @@ -79,7 +79,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,0,1 - PRODUCTVERSION 0,43,0,0 + PRODUCTVERSION 0,44,0,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -100,7 +100,7 @@ BEGIN VALUE "LegalCopyright", "Copyright (C) 2019" VALUE "OriginalFilename", "BlockTheSpot.dll" VALUE "ProductName", "BlockTheSpot" - VALUE "ProductVersion", "0.43.0.0" + VALUE "ProductVersion", "0.44.0.0" END END BLOCK "VarFileInfo" diff --git a/src/hosts.cpp b/src/hosts.cpp index 8cacf95..208512f 100644 --- a/src/hosts.cpp +++ b/src/hosts.cpp @@ -59,6 +59,9 @@ bool checkBlock (const char* nodename) { if (nullptr != strstr (nodename, "google")) return true; + if (nullptr != strstr (nodename, "doubleclick.")) + return true; + // AdGuard DNS if (g_UseAdGuard) { for (auto allow : whitelist) { @@ -144,8 +147,7 @@ int WINAPI winhttpreaddatahook (DWORD RetAddr, Log_WinHttp << data << std::endl; } if (g_WinHttpReadDataFix) return false; - - std::fill ((LPSTR)lpBuffer, (LPSTR)lpBuffer + dwNumberOfBytesToRead, 0x20); + memset (lpBuffer, 0x20, dwNumberOfBytesToRead); return true; }