Probably code that relies on implementation details and only works by coincidence.
We had a bug in our application that only manifested on Windows 8 and later.
The problem was that we were passing NULL instead of some other sentinel value (MSDN said to use a specific sentinel value). XP/Vista/7 took NULL anyway and the effect was the same as the sentinel value but in Windows 8 it did something different.