From:  phpdev@ehrhardt.nl (Jan Ehrhardt)
Date:  11 Jun 2018 08:59:37 Hong Kong Time
Newsgroup:  news.php.net/php.internals.win
Subject:  

Re: FreeLibrary(GetModuleHandle(…))?

NNTP-Posting-Host:  null

Hi Cristoph,

"Christoph M. Becker" in php.internals.win (Mon, 11 Jun 2018 01:34:14
+0200):
>Due to , I've noticed a few occurrences
>where FreeLibrary() is called on a handle retrieved by
>GetModuleHandle().  According to the documentation of
>GetModuleHandle()[1], these appear to be wrong, since the docs state:
>
>| Retrieves a module handle for the specified module. The module must
>| have been loaded by the calling process.
>
>and
>
>| Therefore, do not pass a handle returned by GetModuleHandle to the
>| FreeLibrary function.

Which other occurrences of the same sequence did you notice?
-- 
Jan