We also have to validate the frame to avoid an infinite loop when the
app doesn't call BeginPaint.

1 file changed