That is, line for line, exactly the code I used and it works fine for me.

Is the Screen Saver a default Windows one? I know I'm grasping at straws here, but it's the only thing I can think of.