revert service name string insertion

git-svn-id: file:///home/svn/framework3/trunk@9079 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-04-14 22:17:19 +00:00
parent e5d0e54de8
commit 6fec79926c
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ require 'metasm'
bo = pe.index('SERVICENAME')
raise RuntimeError, "Invalid Win32 PE Service EXE template!" if not bo
pe[bo, name.length] = name
pe[bo, 11] = [name].pack('a11')
pe[136, 4] = [rand(0x100000000)].pack('V')