[Mplayer-cvslog] CVS: main/loader win32.c,1.52,1.53

Nick Kurshev nickols_k at mail.ru
Wed Apr 24 10:05:32 CEST 2002


Hello, Alex!

On Sun, 21 Apr 2002 04:13:14 +0200 you wrote:

> Update of /cvsroot/mplayer/main/loader
> In directory mail:/var/tmp.root/cvs-serv19240
> 
> Modified Files:
> 	win32.c 
> Log Message:
> loading requested library if available, and try to find function there in LookupExternal, needed for Truespeech codec
> 
> Index: win32.c
> ===================================================================
[snip]
> @@ -4073,6 +4076,37 @@
>      }
>      //    printf("%x %x\n", &unk_exp1, &unk_exp2);
>  
> +    printf("External func %s:%d\n", library, ordinal);
> +
> +    /* ok, this is a hack, and a big memory leak. should be fixed. - alex */
> +    {
> +	HMODULE *hand;
> +	WINE_MODREF *wm;
> +	void *func;
> +
> +	hand = LoadLibraryA(library);
> +	if (!hand)
> +	    goto no_dll;
> +	wm = MODULE32_LookupHMODULE(hand);
> +	if (!wm)
> +	{
> +	    FreeLibrary(hand);
> +	    goto no_dll;
> +	}
> +	func = PE_FindExportedFunction(wm, ordinal, 0);
What about -Wall -W ???
ordinal is 'int' but second argument is LPCSTR !!! 8-/
[snip]
> 
> _______________________________________________
> Mplayer-cvslog mailing list
> Mplayer-cvslog at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog
> 


Best regards! Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20020424/ecb71730/attachment.pgp>


More information about the MPlayer-cvslog mailing list