comctl32: Don't get the background colour in ANIMATE_PaintFrame as this can be called...
commit5c517a20b778cdae2dbb406f35ef1cc2126455ed
authorRob Shearman <rob@codeweavers.com>
Wed, 6 Feb 2008 16:50:15 +0000 (6 16:50 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 6 Feb 2008 22:24:40 +0000 (6 23:24 +0100)
tree0a39c42ad395f96546acd8a7486f59c109babe9e
parentac61b90f87a2062b99f6f70686ea86b5b6c241c3
comctl32: Don't get the background colour in ANIMATE_PaintFrame as this can be called inside a critical section.

This could therefore create a deadlock if the processing for
WM_CTLCOLORSTATIC ends up sending certain messages to the animate control.

So move the retrieval of the background colour into the callers of
ANIMATE_PaintFrame but outside of any critical section.
dlls/comctl32/animate.c