[MPlayer-dev-eng] [PATCH] Win32 loader support for OS/2

Diego Biurrun diego at biurrun.de
Mon Feb 8 11:20:49 CET 2010


On Fri, Feb 05, 2010 at 08:53:25PM +0900, KO Myung-Hun wrote:
> 
> This patch adds Win32 loader support for OS/2.
> 
> --- loader/ldt_keeper.c	(revision 30512)
> +++ loader/ldt_keeper.c	(working copy)
> @@ -281,6 +281,11 @@
>      }
>  #endif
> 
> +#ifdef __OS2__

#elif defined(__OS2__)

> --- loader/module.c	(revision 30512)
> +++ loader/module.c	(working copy)
> @@ -744,6 +744,50 @@
> 
>  #ifdef EMU_QTX_API
> 
> +#ifdef __OS2__
> +uint32_t _System DosQueryMem(void *, uint32_t *, uint32_t *);

Aren't you simply missing a header #include?

> +static int is_invalid_ptr(void *p)
> +{
> +    uint32_t cb = 1;
> +    uint32_t fl;
> +
> +    if( DosQueryMem(p, &cb, &fl))

if(

I know the loader code is exceedingly ugly, but let's not make
it worse :)

> +    // Occasionally, ptr with 'EXEC' attr is passed.
> +    // On OS/2, however, malloc() never set 'EXEC' attr.

sets

If Reimar has no more comments, I think you can commit with these
changes applied.

Diego



More information about the MPlayer-dev-eng mailing list