[PATCH v2 2/2] gdi32: Move the 'if' branch out of the loop.