Skip to content

Commit d95a3d2

Browse files
committed
fix lstrcmpiW/lstrcmpiA to not be case-sensitive
1 parent 902e01b commit d95a3d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiling/os/windows/dlls/kernel32/winbase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ def hook_lstrlenW(ql: Qiling, address: int, params):
251251
@winsdkapi(cc=STDCALL, dllname=dllname)
252252
def hook_lstrcmpiW(ql, address, params):
253253
# Copy String2 into String
254-
str1 = params["lpString1"]
255-
str2 = params["lpString2"]
254+
str1 = params["lpString1"].lower()
255+
str2 = params["lpString2"].lower()
256256
if str1 == str2:
257257
return 0
258258
elif str1 > str2:

0 commit comments

Comments
 (0)