[MPlayer-dev-eng] [PATCH] [RFC] fix GetModuleHandle(0)

Martin Simmons vyslnqaaxytp at spammotel.com
Sun Mar 18 21:39:24 CET 2007


>>>>> On Sun, 18 Mar 2007 12:20:44 -0700, Alan Nisota said:
> 
> I am trying to fix GetModuleHanldeA(0) to return the base address of the 
> calling DLL (in general this should be the base address of the filter 
> we've loaded.  What I really want is the address returned by 
> LoadLibraryExA, but I'm not sure how I can get at it from this context. 

That doesn't sound right to me -- it should return the handle of the main
executable.


>   If anyone more familiar with how the library loading works could give 
> me a hint, I could roll a proper patch
> 
> The below patch just hard-codes the value CoreAVC1.3 requires which will 
> allow the newest CoreAVC filter to run (assuming my prior patches are 
> applied).  It is obviously wrong, but is a band-aid until I can figure 
> out the right way to fix this.

The right way probably depends on what CoreAVC does with the value.

__Martin



More information about the MPlayer-dev-eng mailing list