Files
raven/testdata/native_loader/module_path_library.c
T
Raymond Bennett 549cda8f77 test: find a library by the path it was loaded from
GetModuleHandleW and GetModuleHandleExW (pinning it) give back the handle
LoadLibraryW returned for a path, a path to another folder finds nothing,
and the bare name still finds it.

Assisted-by: Claude Code:claude-opus-5-5
AI-Scope: the test client and its registration

(cherry picked from commit 15b7e4ccc462826ffff57c1e19bb04d35fa57296)
2026-10-28 23:16:28 -07:00

8 lines
209 B
C

#include <windows.h>
// A library with nothing in it but its entry point, for module_handle_path_client.c.
BOOL WINAPI raven_library_entry(HINSTANCE instance, DWORD reason, LPVOID reserved)
{
return TRUE;
}