parent
bc0c080947
commit
7347cb170c
|
@ -1606,20 +1606,10 @@ def self.to_vba(framework,code,opts={})
|
||||||
|
|
||||||
when 'dll'
|
when 'dll'
|
||||||
output = case arch
|
output = case arch
|
||||||
when ARCH_X86,nil
|
when ARCH_X86,nil then to_win32pe_dll(framework, code, exeopts)
|
||||||
if exeopts[:inject]
|
when ARCH_X86_64 then to_win64pe_dll(framework, code, exeopts)
|
||||||
to_win32pe(framework, code, exeopts)
|
when ARCH_X64 then to_win64pe_dll(framework, code, exeopts)
|
||||||
else
|
end
|
||||||
to_win32pe_dll(framework, code, exeopts)
|
|
||||||
end
|
|
||||||
when ARCH_X86_64,ARCH_X64
|
|
||||||
if exeopts[:inject]
|
|
||||||
raise RuntimeError, 'Template injection unsupported for x64 DLLs'
|
|
||||||
else
|
|
||||||
to_win64pe_dll(framework, code, exeopts)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
when 'exe'
|
when 'exe'
|
||||||
output = case arch
|
output = case arch
|
||||||
when ARCH_X86,nil then to_win32pe(framework, code, exeopts)
|
when ARCH_X86,nil then to_win32pe(framework, code, exeopts)
|
||||||
|
|
Loading…
Reference in New Issue