## Actual behavior GetModuleHandle's safe overload returns an owned safe handle, which would free the HINSTANCE . ## Expected behavior The handle shouldn't be owned as GetModuleHandle doesn't ref count. https://docs.microsoft.com/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulehandlew#remarks ## Repro steps 1. `NativeMethods.txt` content: ``` GetModuleHandle ```
Activity
AArnott commentedon Jul 23, 2022
Duplicate of #644