[MPlayer-dev-eng] PATCH [7/12] CoreAVC support (Take 3)

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Feb 28 20:29:33 CET 2007


Hello,
On Tue, Feb 27, 2007 at 12:43:49PM -0800, Alan Nisota wrote:
> >007widereg.patch: adds support for Querying registry items as wide
> >strings.  the strings are always stored as standard char strings, so it
> >just converts back-and-forth

> Index: loader/ext.c
> ===================================================================
> --- loader/ext.c.orig	2007-02-15 09:42:47.000000000 -0800
> +++ loader/ext.c	2007-02-15 09:43:25.000000000 -0800
> @@ -570,9 +570,9 @@
>      {
>      for(i=0; i<srclen; i++)
>      {
> -	src++;
>      	if(*src==0)
>  	    return i+1;
> +	src++;
>      }
>  	return srclen+1;
>      }
> @@ -581,17 +581,30 @@
>      for(i=0; i<min(srclen, destlen); i++)
>      {
>  	*dest=(char)*src;
> -	dest++;
> -	src++;
>  	if(*src==0)
>  	    return i+1;
> +	dest++;
> +	src++;
>      }
>      return min(srclen, destlen);
>  }

I intend to apply this part soon as a bugfix, since the old code does
not make much sense to me.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list