Crash after password protected screensaver

BlitzPlus Forums/BlitzPlus Bug Reports/Crash after password protected screensaver

OK found out why I was getting a crash. Calling User32 GetCursorPos when the screensaver is showing returns null and my code didn't like that.

Anyway, it no longer crashes but it still shows the desktop on the window until you click it and then the game comes back but the backbuffer (or fontbuffer, I can't tell which) is corrupted.

Is there a way to tell if the screensaver has been showing and the backbuffer is corrupted? If so I could force a redraw. thanks