a couple rex/ole fixes

git-svn-id: file:///home/svn/framework3/trunk@9287 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-05-12 05:33:35 +00:00
parent a964d403be
commit 670bacb9bc
2 changed files with 4 additions and 3 deletions

View File

@ -51,7 +51,6 @@ class Directory < DirEntry
child.sid = @num_entries
@num_entries += 1
# link item to siblings and/or parent
if (parent._sidChild == DIR_NOSTREAM)
parent._sidChild = child.sid
@ -72,7 +71,9 @@ class Directory < DirEntry
break
end
}
raise RuntimeError, 'Unable to find a sibling to link to in the directory'
if (not sib)
raise RuntimeError, 'Unable to find a sibling to link to in the directory'
end
end
parent << child
end

View File

@ -23,7 +23,7 @@ if (stg = Rex::OLE::Storage.new(document))
data = stm.read(stm.length)
data ||= ""
$stderr.puts "Successfully opened the \"%s\" stream (%u bytes)" % [stream, data.length]
$stdout.puts data
$stdout.print data
stm.close
else
$stderr.puts "Unable to open stream: #{stream}"