Commit 42c0ec8a authored by Etaash Mathamsetty's avatar Etaash Mathamsetty Committed by Alexandre Julliard

ntoskrnl.exe: Use LoadLibraryW for MmGetSystemRoutineAddress.

parent f58c48b8
...@@ -3319,8 +3319,7 @@ PVOID WINAPI MmGetSystemRoutineAddress(PUNICODE_STRING SystemRoutineName) ...@@ -3319,8 +3319,7 @@ PVOID WINAPI MmGetSystemRoutineAddress(PUNICODE_STRING SystemRoutineName)
pFunc = GetProcAddress( hMod, routineNameA.Buffer ); pFunc = GetProcAddress( hMod, routineNameA.Buffer );
if (!pFunc) if (!pFunc)
{ {
hMod = GetModuleHandleW( halW ); hMod = LoadLibraryW( halW );
if (hMod) pFunc = GetProcAddress( hMod, routineNameA.Buffer ); if (hMod) pFunc = GetProcAddress( hMod, routineNameA.Buffer );
} }
RtlFreeAnsiString( &routineNameA ); RtlFreeAnsiString( &routineNameA );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment