http://bugs.winehq.org/show_bug.cgi?id=13112
--- Comment #5 from Josep Ma jaz@pastnotecut.org 2008-09-28 10:10:23 --- I don't know how to test this. The current tests check that the call produces a specific result.
In this case, what matters is the call the function itself does to Invalidate, which is not required. This doesn't change the trackbar in itself, so I wouldn't know how to test if that call is executed or not.
I found the bug since I was calling it repeatedly with the same value and that caused some side effects in my application. Or maybe is precisely the invalidate code the one that should be investigated.
I opted to post it as a patch since it seemed the easy way to get it fixed, but now i'm doubtful about it.