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

Steinar H. Gunderson sgunderson at bigfoot.com
Fri Mar 5 10:24:47 CET 2010


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.

/* Steinar */
-- 
Homepage: http://www.sesse.net/



More information about the MPlayer-dev-eng mailing list