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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Mar 5 19:01:47 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.

In case I didn't say it in the other thread: that basically is my opinion as
well, however I don't really care either way.
It might be a good idea to leave that trick in there commented out and with
an explanation what it does, I'm sure there are not that many people
who know about that kind of thing.



More information about the MPlayer-dev-eng mailing list