[MPlayer-dev-eng] [PATCH] Make GetModuleHandle(NULL) return a valid pointer

Gianluigi Tiesi mplayer at netfarm.it
Fri Mar 5 19:48:03 CET 2010


On Fri, Mar 05, 2010 at 10:24:47AM +0100, Steinar H. Gunderson wrote:
> On Thu, Mar 04, 2010 at 11:39:15PM +0100, Reimar D??ffinger wrote:
> > I think there might be already a better solution for this, see the thread
> > "fix for crt8 init dll"
> > http://archives.free.net.ph/message/20100201.231630.6fad57f1.en.html
> 
> I tried it, and it seems to work (at least for ProRes; I didn't try
> CineForm).
> 
> I think it's generally the right solution to make such a fake header,
> although I'm a bit wary at trying to fake a POSIX mixed executable;
> I don't really see what it buys us (the EncodePointer and DecodePointer calls
> are completely harmless), and it sounds like the thing that could come back
> later and cause problems.

yes but at least you need a section anyway, you may call it .mplayer
or .text

Regards

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/



More information about the MPlayer-dev-eng mailing list