Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit824a3df

Browse files
authored
Update antidebug.go
fix, always returned false. fce never returned true even when blacklisted windows were found
1 parentc08379d commit824a3df

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎internal/antidebug/antidebug.go‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (d *Debugger) CheckBlacklistedWindows() bool {
174174
user32:=windows.NewLazySystemDLL("user32.dll")
175175
procGetWindowText:=user32.NewProc("GetWindowTextW")
176176
procEnumWindows:=user32.NewProc("EnumWindows")
177-
177+
found=false
178178
varenumWindowsProc=func(hwnd windows.HWND,lparamuintptr)uintptr {
179179
vartitle [256]uint16
180180
procGetWindowText.Call(
@@ -186,6 +186,7 @@ func (d *Debugger) CheckBlacklistedWindows() bool {
186186

187187
for_,blacklisted:=ranged.blacklistedWindows {
188188
ifstrings.Contains(strings.ToLower(windowTitle),strings.ToLower(blacklisted)) {
189+
found=true
189190
return0
190191
}
191192
}
@@ -196,5 +197,5 @@ func (d *Debugger) CheckBlacklistedWindows() bool {
196197
windows.NewCallback(enumWindowsProc),
197198
0,
198199
)
199-
returnfalse
200-
}
200+
returnfound
201+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp