small animate_open fix

Rein Klazes rklazes at
Sat Dec 28 07:32:31 CST 2002


(fixes one of the bugs reported under bug#952)

Animate control message ACM_OPEN with zero lParam must close any open
AVI stream. The installer of thebat! email client uses this on a
control that has not opened anything yet and gets confused, crashes,
when the message returns success. This patch makes it return failure,
like native win98 comctl32 does.

	dlls/comctl32:	animate.c

	Let ANIMATE_OpenA return FALSE (= failure) upon a request to
	close a previously opened AVI clip when there isn't one.

Rein Klazes
rklazes at
-------------- next part --------------
--- wine/dlls/comctl32/animate.c	2002-12-13 01:35:44.000000000 +0100
+++ mywine/dlls/comctl32/animate.c	2002-12-28 08:24:08.000000000 +0100
@@ -686,7 +686,8 @@
     if (!lParam) {
 	TRACE("Closing avi!\n");
-	return TRUE;
+        /* installer of thebat! v1.62 requires FALSE here */ 
+	return infoPtr->hMMio ? TRUE : FALSE;
     if (!hInstance)

More information about the wine-patches mailing list