Skip to content

Commit

Permalink
Taskbar10: Fixed inactive (for now) case
Browse files Browse the repository at this point in the history
  • Loading branch information
valinet committed Mar 22, 2022
1 parent 28fc1e5 commit efd52cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ExplorerPatcher/TaskbarCenter.c
Expand Up @@ -478,13 +478,13 @@ BOOL TaskbarCenter_SHWindowsPolicy(REFIID riid)
}
else if (*((unsigned char*)_ReturnAddress() + 8) == 0x84 && VirtualProtect((unsigned char*)_ReturnAddress() + 13, 2, PAGE_EXECUTE_READWRITE, &flOldProtect))
{
*((unsigned char*)_ReturnAddress() + 13) += 0x90;
*((unsigned char*)_ReturnAddress() + 13) += 0x90;
*((unsigned char*)_ReturnAddress() + 13) = 0x90;
*((unsigned char*)_ReturnAddress() + 14) = 0x90;
VirtualProtect((unsigned char*)_ReturnAddress() + 13, 2, flOldProtect, &flOldProtect);
}
bTaskbarCenterHasPatchedSHWindowsPolicy = TRUE;
}
return 1;
}
return SHWindowsPolicy(riid);
}
}

0 comments on commit efd52cf

Please sign in to comment.