comctl32: Keep on displaying the last frame of the animation after the animation has stopped.

This commit is contained in:
Rob Shearman 2008-01-16 14:03:09 +00:00 committed by Alexandre Julliard
parent 68c8e5fe41
commit 92dde89506
1 changed files with 2 additions and 3 deletions

View File

@ -903,11 +903,10 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
case WM_PRINTCLIENT:
case WM_PAINT:
{
/* the animation isn't playing, or has not decompressed
/* the animation has not decompressed
* (and displayed) the first frame yet, don't paint
*/
if ((!infoPtr->uTimer && !infoPtr->hThread) ||
!infoPtr->hbmPrevFrame)
if (!infoPtr->hbmPrevFrame)
{
/* default paint handling */
return DefWindowProcW(hWnd, uMsg, wParam, lParam);