1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ntoskrnl.exe: Use LoadLibraryW for MmGetSystemRoutineAddress.

This commit is contained in:
Etaash Mathamsetty 2022-10-19 23:04:14 -04:00 committed by Alexandre Julliard
parent f58c48b85e
commit 42c0ec8a1f

View file

@ -3319,8 +3319,7 @@ PVOID WINAPI MmGetSystemRoutineAddress(PUNICODE_STRING SystemRoutineName)
pFunc = GetProcAddress( hMod, routineNameA.Buffer );
if (!pFunc)
{
hMod = GetModuleHandleW( halW );
hMod = LoadLibraryW( halW );
if (hMod) pFunc = GetProcAddress( hMod, routineNameA.Buffer );
}
RtlFreeAnsiString( &routineNameA );