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:
parent
4e1a79ada4
commit
d31b36a4ca
|
@ -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)
|
||||
|
|
|
@ -596,7 +596,7 @@ module Text
|
|||
end
|
||||
end
|
||||
|
||||
buf[0..length]
|
||||
buf[0,length]
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue