Windows : desktop resolution query

Odd. Maybe a driver issue.
It always returned 0 for me on linux, but on windows it always worked, I think the last time I checked was at 1.5.2.