FreeLibrary(GetModuleHandle(…))?
[email protected] ("Christoph M. Becker") Mon, 11 Jun 2018 01:34:14 +0200
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
Hi everybody! 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. Could one of the Windows specialists please review these cases, please? [1] <https://msdn.microsoft.com/en-us/library/windows/desktop/ms683199(v=vs.85).aspx> -- Christoph M. Becker