Skip to content

Commit

Permalink
Merge pull request mandiant#178 from cecio/master
Browse files Browse the repository at this point in the history
Fix for Error while calling API handler for ntdll.LdrLoadDll:
  • Loading branch information
williballenthin authored Sep 16, 2021
2 parents d50b789 + 66bb05d commit edf590b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion speakeasy/winenv/api/usermode/ntdll.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import speakeasy.winenv.defs.nt.ddk as ddk
import speakeasy.winenv.defs.nt.ntoskrnl as ntos
import speakeasy.windows.common as winemu


class Ntdll(api.ApiHandler):
Expand Down Expand Up @@ -90,7 +91,7 @@ def LdrLoadDll(self, emu, argv, ctx={}):
hmod = 0

req_lib = self.read_unicode_string(Name)
lib = self.normalize_dll_name(req_lib)
lib = winemu.normalize_dll_name(req_lib)

hmod = emu.load_library(lib)

Expand Down

0 comments on commit edf590b

Please sign in to comment.