Re: FreeLibrary(GetModu leHandle( ))?
[email protected] (Jan Ehrhardt) Mon, 11 Jun 2018 02:59:37 +0200
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
Hi Cristoph, "Christoph M. Becker" in php.internals.win (Mon, 11 Jun 2018 01:34:14 +0200): >Due to <https://bugs.php.net/76443>, 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