Skip to content

Commit

Permalink
Update project files
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabi019 committed Jan 20, 2024
1 parent 8350282 commit dd1c147
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Binary file modified IntelligentTB/IntelligentTB.rc
Binary file not shown.
1 change: 1 addition & 0 deletions IntelligentTB/IntelligentTB.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
</ItemGroup>
<ItemGroup>
<Image Include="icon.ico" />
<Image Include="icon_disabled.ico" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
3 changes: 3 additions & 0 deletions IntelligentTB/IntelligentTB.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@
<Image Include="icon.ico">
<Filter>Resource Files</Filter>
</Image>
<Image Include="icon_disabled.ico">
<Filter>Resource Files</Filter>
</Image>
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions IntelligentTB/TaskbarManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ TaskbarManager::TaskbarManager(TCHAR* bl, TCHAR* wl) {
size_t tokenLength = _tcslen(token);

// Allocate memory for the substring and copy the data
blacklist[i] = reinterpret_cast<TCHAR*>(malloc(sizeof(TCHAR) * tokenLength + 1));
blacklist[i] = new TCHAR[tokenLength + 1];
_tcscpy_s(blacklist[i++], tokenLength + 1, token);

token = _tcstok_s(NULL, delimiter, &context);
Expand Down Expand Up @@ -76,7 +76,7 @@ TaskbarManager::TaskbarManager(TCHAR* bl, TCHAR* wl) {
size_t tokenLength = _tcslen(token);

// Allocate memory for the substring and copy the data
whitelist[i] = reinterpret_cast<TCHAR*>(malloc(sizeof(TCHAR) * tokenLength + 1));
whitelist[i] = new TCHAR[tokenLength + 1];
_tcscpy_s(whitelist[i++], tokenLength + 1, token);

token = _tcstok_s(NULL, delimiter, &context);
Expand Down

0 comments on commit dd1c147

Please sign in to comment.