Skip to content

Commit

Permalink
0.44 memcpy instead of std::fill(performance)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpond committed Feb 1, 2020
1 parent 172b4e8 commit a8bb4fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<h4 align="center">A multi-purpose adblocker and skip bypass for the <strong>Windows</strong> Spotify Desktop Application.</h4>
<h5 align="center">Please support Spotify by purchasing premium</h5>
<p align="center">
<strong>Current Version:</strong> 0.43 <br>
<strong>Last updated:</strong> 11 January 2020<br>
<strong>Last tested version:</strong> 1.1.22.633.g1bab253a
<strong>Current Version:</strong> 0.44 <br>
<strong>Last updated:</strong> 1 February 2020<br>
<strong>Last tested version:</strong> 1.1.24.91.g4ca6d5eb
</p>
<h4 align="center">Important Notice(s)</h4>
<p align="center">
Expand All @@ -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**.

Expand Down
4 changes: 2 additions & 2 deletions src/Resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
6 changes: 4 additions & 2 deletions src/hosts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}

0 comments on commit a8bb4fa

Please sign in to comment.