Land #4584, @sgabe's fix for egghunter searchforward

bug/bundler_fix
jvazquez-r7 2015-01-16 19:36:52 -06:00
commit 697e4fbd41
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 4 additions and 6 deletions

View File

@ -65,13 +65,11 @@ class Egghunter
flippage = "\n\tor dx,0xfff"
edxdirection = "\n\tinc edx"
if searchforward
if searchforward.to_s.downcase == 'false'
# go backwards
flippage = "\n\txor dl,dl"
edxdirection = "\n\tdec edx"
end
end
# other vars
getpointer = ''