Add windows suppor to pe_memdump. Fix a stupid typo in pattern_create

git-svn-id: file:///home/svn/framework3/trunk@4629 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2007-04-03 02:42:30 +00:00
parent 4e1a79ada4
commit d31b36a4ca
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class PeMemDump < PeBase
raise "Not a .rng file: #{filename}"
end
file = File.open(filename)
file = File.open(filename, 'rb')
if disk_backed
obj = ImageSource::Disk.new(file)

View File

@ -596,7 +596,7 @@ module Text
end
end
buf[0..length]
buf[0,length]
end
#