MCPcopy Create free account
hub / github.com/LibreVR/Revive / HookLoadLibraryW

Function HookLoadLibraryW

Revive/main.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39HMODULE WINAPI HookLoadLibraryW(LPCWSTR lpFileName)
40{
41 LPCWSTR name = PathFindFileNameW(lpFileName);
42 LPCWSTR ext = PathFindExtensionW(name);
43 size_t length = ext - name;
44
45 // Load our own library again so the ref count is incremented.
46 if (wcsncmp(name, ovrModuleName, length) == 0)
47 return TrueLoadLibraryW(revModuleName);
48
49 return TrueLoadLibraryW(lpFileName);
50}
51
52HMODULE WINAPI HookLoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
53{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected